Feeds
已回答
Extract sparse block diagonal without loop
A slightly more simple (and convoluted) loop for doing the same thing: ind = [1, 1]; % [i, j] for k = 1:n B(:, :,...
Extract sparse block diagonal without loop
A slightly more simple (and convoluted) loop for doing the same thing: ind = [1, 1]; % [i, j] for k = 1:n B(:, :,...
11 years 前 | 0
提问
Extract sparse block diagonal without loop
Hello, I'm interested in pulling the block diagonal out of a sparse matrix and putting each of those diagonal matrices into the ...
11 years 前 | 3 个回答 | 0
3
个回答提问
Convert layers of 3D matrix to list of cells
I'd like to take a 3D matrix and convert it to a list (1D) of cells. Example: x(:, :, 1) = magic(3); x(:, :, 2) = 2*mag...
11 years 前 | 1 个回答 | 0
1
个回答已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
14 years 前
