changeset 10384:7abbe3d51746 octave-forge

geometry: fixing demos in curve2polyline.
author jpicarbajal
date Tue, 05 Jun 2012 14:20:07 +0000
parents 59e76e093f74
children 530ed8db5dd7
files main/geometry/inst/shape2d/curve2polyline.m main/geometry/inst/shape2d/shapetransform.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/geometry/inst/shape2d/curve2polyline.m	Tue Jun 05 13:52:10 2012 +0000
+++ b/main/geometry/inst/shape2d/curve2polyline.m	Tue Jun 05 14:20:07 2012 +0000
@@ -138,4 +138,4 @@
 %! t  = linspace(0,1,100)';
 %! pc = curveval(curve,t);
 %!
-%! plot(p(:,1),p(:,2),'-o',pc(:,1),pc(:,2),'-r')
+%! plot(polyline(:,1),polyline(:,2),'-o',pc(:,1),pc(:,2),'-r')
--- a/main/geometry/inst/shape2d/shapetransform.m	Tue Jun 05 13:52:10 2012 +0000
+++ b/main/geometry/inst/shape2d/shapetransform.m	Tue Jun 05 14:20:07 2012 +0000
@@ -98,7 +98,7 @@
 %! shape = shapetransform (shape,-T + [2; 0]);
 %!
 %! close
-%! shapeplot (shape,'-r','linewidth',2)
+%! shapeplot (shape,'-r','linewidth',2);
 %! hold on
 %! for i = 1:9
 %!   T = createRotation (i*pi/5)(1:2,1:2)/exp(0.3*i);