You can use the built-in function num2str to convert a numeric variable into a string. Here's an example:
main.m76 chars3 lines
In this example, num has the value 123, and the num2str function is used to convert it to a string. The resulting string is stored in the variable str.
gistlibby LogSnag