decoding error message

asha g dend_15 at yahoo.com
Mon Feb 16 00:20:10 CST 2009



 when I try to print the following command I get errors. 

hold on
x = linspace(0,l,N)
X = x./lambda;
y = z;
y1 = z1;
plot(x,y,'r+')
plot(x,y1,'b*')
xlabel('x')
ylabel('V')
title('linear taper and nontapered')
legend("on")
legend ('D1 = 1.85*10^-4 cm', 'D1 = 1.80*10^-4 cm')
print('cabunpatapnontapocttest.eps','-depsc')
holdoff

The errors i get are :
error: `legend' undefined near line 191 column 2
error: near line 191 of file `/home/proj/08/cesasha/aseasha/cabunpatapnontapoct.m'
 Line 191 is legend ("on").When I block that the same error appears for the next line and so on. 

Please help.

Asha 


      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/



More information about the Help-octave mailing list