help-octave
[Top][All Lists]
Advanced

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

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


From: John W. Eaton
Subject: error: can't perform indexing operations for <unknown type> type
Date: Thu, 14 Jun 2007 03:26:04 -0400

On 14-Jun-2007, 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
| error: can't perform indexing operations for <unknown type> type
| .
| here although i got the required plot ,why is the error coming?

Type

  rectified_sine

at the octave prompt, not

  rectified_sine.m

jwe


reply via email to

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