[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
index using end
From: |
asb |
Subject: |
index using end |
Date: |
Wed, 15 Nov 2017 15:14:28 -0700 (MST) |
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