Feeds
提问
How can I access element with same index from multiple cells
For example, we have a = cell(2,2); a{1} = 1:4; a{2} = 1:4; a{3} = 1:4; a{4} = 1:4; How can we access like ...
11 years 前 | 2 个回答 | 0
2
个回答提问
How to index like A(B(i), i)
For example, A = rand(3, 5); B = [3,2,1,2,3]; and I want C like: for i = 1:size(A, 2) C(i) = A(B(i), i);...
11 years 前 | 1 个回答 | 0