MATLAB scripts are a series of commands saved in a file (with a .m
extension). You can also run commands interactively in the Command Window.
;
suppresses the output.%
to start a comment..m
files, named after the function.;
, MATLAB will immediately display the result in the Command Window.