2.12: Understanding Editor Warning and Error messages
- Page ID
Bay Carey Smith
In the MATLAB editor, you probably have seen little orange or red lines on the right hand side.
These are there to help you correct your code.
The red lines indicate errors. The code will not run until you fix these. When you have any errors, the little box in the upper right-hand corner will be red.
The orange lines indicate warnings. When you have warnings, but no errors, the little box in the upper right-hand corner will be orange. There are many different kinds of warnings. Read them and decide if they indicate something that needs to be fixed. Some only indicate that a line doesn't have a semi-colon, so that the result will show on the screen, which may be OK, or may be a problem if you have too much showing on the screen.
When you have no warnings and no errors, the little box in the upper right-hand corner will be green.
Read this link to better understand the editor: