string string(multi-type)
Return Type: string
Parameters: multi-type
Description:
This function returns the string representation of the parameter variable.
It is similar to disp, but returns the value as a string instead of displaying
it.
Example
Code |
1 >>window
w = MainWin("*", "Notepad");
2 >>int i = 10;
3 >>string s = string(w);
4 >>disp(s);
Tag: '*' Class: 'Notepad'
5 >>disp(string(i));
10 |