Is there any function which returns the content of a variable as string?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Fangjun Jiang
le 14 Mar 2016
Modifié(e) : Fangjun Jiang
le 14 Mar 2016
0 votes
num2str();
mat2str()
1 commentaire
Walter Roberson
le 15 Mar 2016
Those require known the datatype.
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!