Is there any function which returns the content of a variable as string?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Fangjun Jiang
am 14 Mär. 2016
Bearbeitet: Fangjun Jiang
am 14 Mär. 2016
0 Stimmen
num2str();
mat2str()
1 Kommentar
Walter Roberson
am 15 Mär. 2016
Those require known the datatype.
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!