How do I repair the eror?
1 回表示 (過去 30 日間)
古いコメントを表示
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 件のコメント
回答 (1 件)
Rik
2023 年 4 月 22 日
You need to make sure each element of the cell array is a char vector. Since currently the second one is a cell, you need to unpack it. The code below should result in a cellstr.
z=Y(1,j)
zz=[z(1) z{2}];
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!