help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: can't perform indexing operations for <unknown type> type


From: Paul Kienzle
Subject: Re: error: can't perform indexing operations for <unknown type> type
Date: Thu, 14 Jun 2007 03:47:38 -0400


On Jun 14, 2007, at 3:10 AM, lokesh rajendran wrote:

hai ,
i wrote the following script using "kwrite"editor.and stored it in the
filename"rectified_sine.m"
the document is as follows:
%octave script for plotting a sine wave<rectified>
theta=linspace(0,2*pi,1000);%linear or equal spacing between the points from
0 to 2*pi
y=abs(sin(theta));%to print alll negative values as positive
plot (theta,y,':',theta,sin(theta))%multiple plot

and i got the following error message:
octave:5> rectified_sine.m

This should be:

octave:5> rectified_sine

        - Paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]