[Top][All Lists]

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

"end" as array index?

From: John W. Eaton
Subject: "end" as array index?
Date: Fri, 20 Dec 2002 16:12:46 -0600

On 20-Dec-2002, James Frye <address@hidden> wrote:

| Got what is probably a real dumb newbie question: our lab has a bunch of
| data analysis scripts written for Matlab.  I'm trying to get some of them
| to work under Octave, even though I know next to nothing about Matlab. The
| scripts have a mumber of instances of a construct like
|       temp (end-3:end) = 0;

This is equivalent to

  temp (length(temp)-3:length(temp)) = 0;


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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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