help-octave
[Top][All Lists]
Advanced

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

subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?


From: G..
Subject: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?
Date: Fri, 24 Apr 2009 02:07:11 -0700 (PDT)

Very often I would need a function subarray(x, d, k) that picks, for integers
d and k, from an array x all k-th elements at dimension d:

y = subarray(x, d, k)   <=>   y = x(:,...,:,k,:,...,:)

where k is at position d.

Is there any such thing?

G.
-- 
View this message in context: 
http://www.nabble.com/subarray%28x%2C-d%2C-k%29-for-picking-all-k-th-elements-of-d-th-dimension-of-x---tp23212405p23212405.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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