Loren on the Art of MATLAB

What’s “if” “all” about? 12

Posted by Loren Shure,

I recently posted about a GOTCHA with the expression a < x < b in MATLAB and Matt's comments made me look to see if I had ever devoted a post to the behavior of all (or its companion any). So today I will explain how all works and why you need to take care when you use arrays for testing conditions in if and while statements. This is especially true if you do not use them with functions such as any or all since they can reduce expressions to scalar true and false values.... read more >>

Why is Answer to 3 < A < 7 Unexpected? 9

Posted by Loren Shure,

There have been countless (not really!) times on the MATLAB newsgroup where a question of the sort written in the title has been asked (and answered). Let's go through the code to understand what's happening. ... read more >>

MATLAB Virtual Conference – 28 March 2012

Posted by Loren Shure,

I am pleased to announce that we have another MATLAB Virtual Conference planned and taking place towards the end of March 2012. I would like to formally invite you to join us on March 28, 2012. ... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.