To prevent an answer from appearing in the MATLAB command window, you can add a semicolon ;
at the end of the line where you are executing the command. This suppresses the output.
For example:
main.m9 chars2 lines
This will assign the value 10
to the variable x
without displaying it in the command window.
gistlibby LogSnag