help-octave
[Top][All Lists]
Advanced

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

Re: two questions -- one remaining


From: Paul Probert
Subject: Re: two questions -- one remaining
Date: Mon, 12 Sep 2005 16:55:20 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728

Dmitri A. Sergatskov wrote:
clip...
In particular, what does Matlab returns in the following case:

X = [1,2,3,4]
x = pi;
X(x)

Matlab 6.5:
>> X=[1,2,3,4];
>> x=pi;
>> X(x)
??? Subscript indices must either be real positive integers or logicals.


x = 3.0
X(x)


Matlab 6.5:
>> X=[1,2,3,4];
>> x=3.0;
>> X(x)

ans =

     3


There were some typo in plot command which Matlab could
had ignored and Octave does not.

 plot(S,v,';;',)


Matlab 6.5:
>> plot(S,v,';;',)
??? plot(S,v,';;',)
                  |
Error: Expected a variable, function, or constant, found ")".

clip ...

Paul Probert



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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