How do I repair the eror?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 commentaires
Réponses (1)
Rik
le 22 Avr 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}];
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!