How do I repair the eror?
1 view (last 30 days)
Show older comments
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 Comments
Answers (1)
Rik
on 22 Apr 2023
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}];
See Also
Categories
Find more on Characters and Strings 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!