Mercurial > forge
changeset 2643:79de096f5afb octave-forge
Remove dependency on plot toolbox in test code
author | adb014 |
---|---|
date | Mon, 09 Oct 2006 19:57:18 +0000 |
parents | d07c8b074bcf |
children | c051c91dde47 |
files | main/image/inst/imrotate.m |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/inst/imrotate.m Mon Oct 09 19:09:06 2006 +0000 +++ b/main/image/inst/imrotate.m Mon Oct 09 19:57:18 2006 +0000 @@ -306,7 +306,14 @@ %! 3.5 3.1 3.5 # bilinear %! 2.7 0.1 2.7 # bicubic %! 2.7 1.6 2.8 ]; # Fourier -%! x = peaks(50); +%! +%! # This is peaks(50) without the dependency on the plot package +%! x = y = linspace(-3,3,50); +%! [X,Y] = meshgrid(x,y); +%! x = 3*(1-X).^2.*exp(-X.^2 - (Y+1).^2) \ +%! - 10*(X/5 - X.^3 - Y.^5).*exp(-X.^2-Y.^2) \ +%! - 1/3*exp(-(X+1).^2 - Y.^2); +%! %! x -= min(min(x)); # Fourier does not handle neg. values well %! for m = 1:(length(methods)) %! y = x;