How do I repair the eror?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 Kommentare
Antworten (1)
Rik
am 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}];
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!