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.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。