Feeds
提问
unique across multiple cells or arrays
Let's say I got a bunch of arrays in a cell array that are not the same size: a = {[1 2 2], [2 3 6 3], [4 3 5 6 7]} I want to ...
6 years 前 | 1 个回答 | 1
1
个回答提问
How to add repeated elements to a vector without looping?
I have the following code: a = zeros(1, 4); a([1 2 4 3 2 1 1]) = a([1 2 4 3 2 1 1]) + [1 1 1 1 1 1 1]; This gives a == [1 1 1...
6 years 前 | 1 个回答 | 0


