String in MATLAB
Posted on Dec 20, 2012 in Computer Science
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
-
To display special characters (e.g.
\n
,\t
and so on), you have to usesprintf
to format it first.fprintf
does the job of formatting and printing together. -
Unlike R, numbers in MATLAB will not be silently converted to strings when needed. You must use the function
num2str
to convert numbers to strings manually.