In MATLAB, to display the result of a computation or variable value, you can use the disp() function.
main.m142 chars10 lines
This will output:
main.m6 chars4 lines
You can also use fprintf() to display more complex output with formatting options.
gistlibby LogSnag