help-octave
[Top][All Lists]
Advanced

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

Re: matlab code conversion


From: Tim Meehan
Subject: Re: matlab code conversion
Date: Thu, 27 Mar 2003 14:34:01 -0600

  I don't believe that "end" can be used this
 way in octave.  You should be able to use
 length(x) instead.

  An equiv statement would be

  a_struct.name=fileroot(max([length(fileroot)-20 1]):length(fileroot));

tim

On Thu, 27 Mar 2003, Myriam Abramson wrote:

> Hi!
>
> I'm trying to convert some matlab code. I get an error parsing that:
>
>
> parse error near line 64 of file /home/me/somefunc.m
>
> >>> a_struct.name=fileroot(max([end-20 1]):end);
>                                     ^
>
> error: `somefunc' undefined near line 2 column 1
> error: evaluating index expression near line 2, column 1
>
> Any ideas? Thanks.
>
> --
>                                             myriam
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>



-------------------------------------------------------------
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]