[scilab-Users] index error not helpful

Gary Nelson gnelson at quantasonics.com
Mon Apr 19 21:21:03 CEST 2010


Julio
Yes, I actually tried all combinations of plot including leaving out the n, and plot(n,n)

THey all give exactly the same error.

I have been doing this in the editor, but also tried copying the text and pasting it into the console. Same result.

Is this a Mac-only bug?

How can we find out??

Thanks
On Apr 19, 2010, at 10:43 AM, Julio Gonzalez-Saenz wrote:

> I assumed you forgot the variable  "n"  in plot(phz) when copy and paste, don't you??
> 
> Otherwise, I can't see why you get the error.. and we dont.
> 
> Julio
> 
> 
> From: Gary Nelson <gnelson at quantasonics.com>
> To: users at lists.scilab.org
> Sent: Mon, 19 April, 2010 17:58:19
> Subject: Re: [scilab-Users] index error not helpful
> 
> This is what I get. Line 7 is the plot command.
> 
> 
>  plot(phz)
>           !--error 21 
> Invalid index.
> 
> at line       7 of exec file called by :    
> exec('/test if.sce', -1)
>  
>  
> On Apr 19, 2010, at 6:13 AM, Julio Gonzalez-Saenz wrote:
> 
>> I don't either. It plots two graphics one in blue and one in green with 20 points.#
>> 
>> Julio
>> 
>> From: Samuel Gougeon <Samuel.Gougeon at univ-lemans.fr>
>> To: users at lists.scilab.org
>> Sent: Mon, 19 April, 2010 14:12:13
>> Subject: Re: [scilab-Users] index error not helpful
>> 
>> ----- 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.
>> 
>> 
>> 
> 
> Gary Nelson
> gnelson at quantasonics.com
> 
> 
> 
> 
> 

Gary Nelson
gnelson at quantasonics.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100419/cf0aea2e/attachment.htm>


More information about the users mailing list