Stuart’s MATLAB Videos

Watch and Learn

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.

|
  • print

コメント

コメントを残すには、ここ をクリックして MathWorks アカウントにサインインするか新しい MathWorks アカウントを作成します。