Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
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.
Recorded: 10 Feb 2014