Understand If statement behavior on vectors
In teaching new MATLAB users, I often see them accidentally use a vector as an input to an if statement. This is not likely what they intend and it is often an overlooked syntax error. In this video, I show the error as it is often coded and a simple example showing the outcomes of different vectors.
- Category:
- Format: Video,
- Level: Basic
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.