Assuming you're asking how to write the following code in MATLAB:
main.m107 chars7 lines
Here's the equivalent MATLAB code:
main.m111 chars8 lines
Note that semi-colons are used to suppress output in MATLAB, and disp()
is used to print text to the console.
gistlibby LogSnag