Im working through an example and Ive typed every command into MATLAB perfectly and in the order given in the lab, but Im still getting errors. What might be the problem?
First of all, make sure you’re really typing in the command exactly as it appears in the lab by copying and pasting the text rather than trying to re-type it yourself. Often, you’ll miss small characters like dots and commas, or else you’ll miss a vital parenthesis. When copying and pasting the text, remember not to copy the prompt symbol (>>). Just copy and paste the text of the command, given in red. In general, it is a good idea to start a fresh session of MATLAB before beginning any lab assignment. So if you have been A. working on multiple assignments in a row, B. doing other work in MATLAB, or C. making a lot of mistakes requiring you to go back and redo much of the lab, then it might be a good idea to close MATLAB and open it back up again. If you are in the middle of an assignment already, though, use this as a last resort, since this effectively erases all the work you’ve already done in the lab. You’ll have to start over from the beginning of the Example or Exercise you were