[scilab-Users] index error not helpful

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Mon Apr 19 14:12:13 CEST 2010


----- Message d'origine -----
De : Gary Nelson
Date : 19/04/2010 13:43:
> What is wrong with this seemingly simple test
>
> clc()
> n=[1:20]
> z=exp(%i*2*%pi.*n./10)
> phz=atan(imag(z),real(z))
> ifq=diff(phz)
> ifq=[ifq,ifq($)]
> plot(n,phz,n,ifq)
>
> The lengths of all vectors are 20 yet I get an error 21 index error
>   
I do not get any syntax error. It runs well for me.




More information about the users mailing list