Is there any function which returns the content of a variable as string?
Mostrar comentarios más antiguos
We have to know the data type when using `sprintf` and it can convert limited types to string.
disp(var) can show the content of a variable of any type but it doesn't return anything.
Respuesta aceptada
Más respuestas (1)
Fangjun Jiang
el 14 de Mzo. de 2016
Editada: Fangjun Jiang
el 14 de Mzo. de 2016
0 votos
num2str();
mat2str()
1 comentario
Walter Roberson
el 15 de Mzo. de 2016
Those require known the datatype.
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!