[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.
- subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?,
G.. <=
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, Jaroslav Hajek, 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, G.., 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, Jaroslav Hajek, 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, Jaroslav Hajek, 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, G.., 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, Jaroslav Hajek, 2009/04/24
- Re: subarray(x, d, k) for picking all k-th elements of d-th dimension of x ?, Francesco Potorti`, 2009/04/24