diff scripts/plot/hold.m @ 14252:4e6436a60b62

Changes to allow plot demos to be run under Matlab. * hold.m, legend.m
author Ben Abbott <bpabbott@mac.com>
date Sun, 22 Jan 2012 17:56:46 -0500
parents c4fa5e0b6193
children 7277fe922e99
line wrap: on
line diff
--- a/scripts/plot/hold.m
+++ b/scripts/plot/hold.m
@@ -136,7 +136,7 @@
 %! z = peaks (x, y);
 %! contourf (x, y, z, 10);
 %! hold on;
-%! plot (vec (x), vec (y), '^');
+%! plot (x(:), y(:), '^');
 %! patch ([-1.0 1.0 1.0 -1.0 -1.0], [-1.0 -1.0 1.0 1.0 -1.0], 'red');
 %! xlim ([-2.0 2.0]);
 %! ylim ([-2.0 2.0]);