Convert Cell to Matrix
Show older comments
Let' say, I have cell_A: 5x1 cell
cell_A={ [] ; [1] ; [5]; [] ; [2]};
How can I convert it to be matrix? 5-by-1 matrix
result_matrix=[ []; 1; 5 ; [] ; 2 ];
Accepted Answer
More Answers (1)
Walter Roberson
on 26 Jun 2019
0 votes
You cannot. Matrices cannot have "holes" in them.
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!