How do I repair the eror?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 Commenti
Risposte (1)
Rik
il 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}];
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!