<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>I don't either. It plots two graphics one in blue and one in green with 20 points.#<br><br>Julio<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Samuel Gougeon <Samuel.Gougeon@univ-lemans.fr><br><b><span style="font-weight: bold;">To:</span></b> users@lists.scilab.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, 19 April, 2010 14:12:13<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [scilab-Users] index error not helpful<br></font><br>----- Message d'origine -----<br>De : Gary Nelson<br>Date : 19/04/2010 13:43:<br>> What is wrong with this seemingly simple
test<br>><br>> clc()<br>> n=[1:20]<br>> z=exp(%i*2*%pi.*n./10)<br>> phz=atan(imag(z),real(z))<br>> ifq=diff(phz)<br>> ifq=[ifq,ifq($)]<br>> plot(n,phz,n,ifq)<br>><br>> The lengths of all vectors are 20 yet I get an error 21 index error<br>> <br>I do not get any syntax error. It runs well for me.<br><br></div></div>
</div><br>
</body></html>