How do I repair the eror?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
0 comentarios
Respuestas (1)
Rik
el 22 de Abr. de 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}];
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!