help-octave
[Top][All Lists]
Advanced

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

Re: index using end


From: Doug Stewart
Subject: Re: index using end
Date: Wed, 15 Nov 2017 17:22:11 -0500



On Wed, Nov 15, 2017 at 5:14 PM, asb <address@hidden> wrote:
octave doesn't recognize end as an index
Example:
>> foo=[1 2 3]
foo =

   1   2   3

>> foo(end)
error: 'a' undefined near line 9 column 12
error: called from
    end at line 9 column 5
error: evaluating argument list element number 1
error: called from
    end at line 9 column 5
error: evaluating argument list element number 1

In addition, the library function index also fails:
>> img_file
img_file = dti.nii
>> index(img_file,".",directon="last")
error: 'a' undefined near line 9 column 12
error: called from
    end at line 9 column 5
    index at line 79 column 9
error: evaluating argument list element number 1
error: called from
    end at line 9 column 5
    index at line 79 column 9
error: evaluating argument list element number 1
error: called from
    index at line 79 column 9

I found an old message about this.  Has this just not been implemented yet,
or is there a patch?




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


it works for me in octave 4.2.1
--
DASCertificate for 206392


reply via email to

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