Every programming language has a set of rules, referred to as syntax, which must be follow for our computer to understand the instructions we create. Syntax is the proper method of putting together the letters, numbers, and symbols of a programming language to form meaningful statements or commands.


If we attempt to execute a command Matlab cannot interpret, then an error statement is created and displayed in the command window.


This statement is displayed in a red color and provides information about the problem with our command.



Error statements can be very helpful for fixing “bugs” in computer code. However, sometimes it can be confusing to figure out how to trouble-shoot a problem based on an error statement.


An experienced programmer learns through practice how to understand the meaning of various error statements, and apply this feedback to improve their code.


Now that we have had a chance to look at the proper way to write commands and create variables, let’s have a look at the different types of data that can be assigned to variables.

Receive Updates

No spam guarantee.