[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selecting values from a matrix via indices in another matrix
From: |
Andrei Bobrov |
Subject: |
Re: Selecting values from a matrix via indices in another matrix |
Date: |
Tue, 30 Sep 2014 21:46:21 -0700 (PDT) |
subs_cell = num2cell(A,1);
idx = sub2ind (size(B),subs_cell{:});
C = B(idx);
--
View this message in context:
http://octave.1599824.n4.nabble.com/Selecting-values-from-a-matrix-via-indices-in-another-matrix-tp4666789p4666801.html
Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Selecting values from a matrix via indices in another matrix,
Andrei Bobrov <=