converting a vector entry into string
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello fellows: I know that this topic (conversion of a number into a string) is very basic one and the syntax for it is num2str. However I am facing an error when trying to convert a number in a vector into string using the following for loop:
for i=1:L-1
display(['k', num2str(i),' = ',num2str(k(i)),' pixels^-1.']);
end
The error is:
Undefined function 'num2srt' for input arguments of type 'double'.
Any help will be appreciated
1 Commento
Risposta accettata
Oleg Komarov
il 3 Ago 2012
It appears to be a typo, are you sure that you're using num2str() instead of num2srt()?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!