Mercurial > hg > octave-lyh
diff scripts/general/profshow.m @ 13837:2c80bbd87f5d
don't define functions in test and demo blocks
* scripts/general/profshow.m: Avoid function definition in demo block.
* scripts/sparse/bicgstab.m: Avoid function definition in test block.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 07 Nov 2011 02:56:06 -0500 |
parents | c5ddb99ff5de |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/scripts/general/profshow.m +++ b/scripts/general/profshow.m @@ -90,15 +90,8 @@ %! profshow (T, 10); %!demo -%! function f = myfib (n) -%! if (n <= 2) -%! f = 1; -%! else -%! f = myfib (n - 1) + myfib (n - 2); -%! endif -%! endfunction %! profile ("on"); -%! myfib (20); +%! expm (rand (500) + eye (500)); %! profile ("off"); %! profshow (profile ("info"), 5);