|
From: | Doug Stewart |
Subject: | Re: index using end |
Date: | Wed, 15 Nov 2017 17:22:11 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |