how to stop ans from appearing in matlab

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.m
x = 10; 
9 chars
2 lines

This will assign the value 10 to the variable x without displaying it in the command window.

related categories

gistlibby LogSnag