Is there any function which returns the content of a variable as string?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Fangjun Jiang
il 14 Mar 2016
Modificato: Fangjun Jiang
il 14 Mar 2016
0 voti
num2str();
mat2str()
1 Commento
Walter Roberson
il 15 Mar 2016
Those require known the datatype.
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!