# HG changeset patch # User Rik # Date 1375303746 25200 # Node ID d4549655b92e29f0799f8de7cc59e9d27dcef827 # Parent a639221f9863805e7d3cae2c617589ea8873c7f5 Rephrase %!tests to take advantage of single output form of peaks(). * scripts/plot/pcolor.m, scripts/plot/surf.m, scripts/plot/surfc.m, scripts/plot/waterfall.m: Rephrase %!tests to take advantage of single output form of peaks(). diff -r a639221f9863 -r d4549655b92e scripts/plot/pcolor.m --- a/scripts/plot/pcolor.m Wed Jul 31 13:43:44 2013 -0700 +++ b/scripts/plot/pcolor.m Wed Jul 31 13:49:06 2013 -0700 @@ -102,7 +102,7 @@ %!demo %! clf; %! colormap ('default'); -%! [~,~,Z] = peaks (); +%! Z = peaks (); %! pcolor (Z); %!demo diff -r a639221f9863 -r d4549655b92e scripts/plot/surf.m --- a/scripts/plot/surf.m Wed Jul 31 13:43:44 2013 -0700 +++ b/scripts/plot/surf.m Wed Jul 31 13:49:06 2013 -0700 @@ -70,7 +70,7 @@ %!demo %! clf; %! colormap ('default'); -%! [~,~,Z] = peaks (); +%! Z = peaks (); %! surf (Z); %!demo diff -r a639221f9863 -r d4549655b92e scripts/plot/surfc.m --- a/scripts/plot/surfc.m Wed Jul 31 13:43:44 2013 -0700 +++ b/scripts/plot/surfc.m Wed Jul 31 13:49:06 2013 -0700 @@ -84,7 +84,7 @@ %!demo %! clf; %! colormap ('default'); -%! [~,~,Z] = peaks (); +%! Z = peaks (); %! surfc (Z); %!demo diff -r a639221f9863 -r d4549655b92e scripts/plot/waterfall.m --- a/scripts/plot/waterfall.m Wed Jul 31 13:43:44 2013 -0700 +++ b/scripts/plot/waterfall.m Wed Jul 31 13:49:06 2013 -0700 @@ -56,6 +56,6 @@ %!demo %! clf; %! colormap ('default'); -%! [~,~,Z] = peaks (); +%! Z = peaks (); %! waterfall (Z);