Stuart’s MATLAB Videos

Bad coding practices to avoid

Posted by Doug Hull,

I was revisiting older posts, and this is one of my most frequently referenced posts. I teach the MATLAB 101 class to every new hire at MathWorks. Inevitably, someone will ask me how to make a global variable. I then Google up: “How to make MATLAB Doug Cry” and... read more >>

Vintage Videos: Still relevant

Posted by Doug Hull,

There are certain timeless questions about MATLAB. I was just asked about this and knew I had made a video about changing object properties in GUIDE. I have been making video for quite a while. There are 250+ of them. Look to the left and see the archives. I... read more >>

Vectorizing code in MATLAB

Posted by Doug Hull,

When you vectorize code, you avoid looping through an array and instead do operations on the matrix level. This avoids for loops in MATLAB. The reason for vectorizing are often stylistic. Vectorizing is preferred because it can make your code shorter, easier to read and maintain. This... read more >>

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