This three minute video takes a look at the “Switch case” flow control statement and contrasts it with the more familiar “If elseif” flow control statement.
Often times, people will use an “If elseif” statement where a “Switch case” statement is going to be cleaner and easier to understand and maintain.
Other videos have been gathered here:
https://blogs.mathworks.com/pick/category/video/
Other MATLAB Basics posts have been gathered here:
https://blogs.mathworks.com/pick/category/matlab-basics/
As a cool little post script: At most places you celebrate the 100th something or other, but since this is a software company I feel I should celebrate the 64th video (2^6) and as I post this I see that it is the 18128th file on the File Exchange capturing the next power of two in the last three digits.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。