MATLAB: “Error: Unexpected MATLAB expression.” I’m not too sure what’s wrong with the code.

basicinputoutput

Best Answer

You cannot have a space in the name of your m-file. Call it IOHomework.m instead of "IO Homework.m"
Related Question