Both disp and display functions have no return parameters and display the contents of the variable in the command window.
I would like to get the result of calling a function (display string) in a variable instead of outputting to a command window, something like this str = ToString( myStruct ); where the input variable is a MATLAB structure!
I know that the display result depends on the available width of the command window, it can be wide or narrow.
In all modern programming languages, this will be the obj.ToString() method.
matlab
Mikhail
source share