help-octave
[Top][All Lists]
Advanced

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

nD arrays and 'end' keyword


From: Laurent Jacques
Subject: nD arrays and 'end' keyword
Date: Thu, 27 Nov 2003 23:24:28 +0100
User-agent: KMail/1.5.4

Hi,

First of all, thank you for this new release of Octave (I mean the 2.1.52. I'm 
using however the latest available on debian: 2.1.51)
nD arrays are for instance a real improvement for me.

However, I have detected a little missing feature. The 'end' keyword isn't 
understood from the third dimension. Here is a sample of code

----
octave:3> a=randn(2,3,4);

octave:4> a(1,1,1)
ans = -0.49267

octave:5> a(end,1,1)
ans = 0.16377

octave:6> a(end,end,1)
ans = -1.2408

octave:7> a(end,end,end)
error: __end__: internal error
error: evaluating argument list element number 3

octave:7> a(1,end,end)
error: __end__: internal error
error: evaluating argument list element number 3

octave:7> a(1,1,end)
error: __end__: internal error
error: evaluating argument list element number 3

%%% Same for higher dimension
octave:11> a=randn(2,2,2,2);
octave:12> a(1,1,1,end)
error: __end__: internal error
error: evaluating argument list element number 4


----

Bye,
Laurent.



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