Community Profile

photo

Stephen


University of Tennessee Knoxville

Active since 2012

Statistics

All
  • Solver

View badges

Content Feed

View by

Answered
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(:, :,...

10 years ago | 0

Question


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 ...

10 years ago | 3 answers | 0

3

answers

Question


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...

10 years ago | 1 answer | 0

1

answer

Solved


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...

12 years ago