Remove empty rows from cell array
古いコメントを表示
Hi, I have a cell array (attached) and would need to remove the rows with "" as they are empty fields, but still keep the rows with a 0. Is there a way I can do that and convert this cell array to a matrix? Currently, there is an error with i use cell2mat(A) as the fields are not the same data type.
Thank you! Appreciate any help
2 件のコメント
KSSV
2020 年 10 月 3 日
Check the data properly.....all cells are not numbers..one cell has a structure.
iwant = cell2mat(A(1:65))
The above gives column matrix.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!