Doug's MATLAB Video Tutorials

Results for: Format: Video

Making a Multi-color Line in MATLAB 2

Posted by Doug Hull,

This video is a follow on to last week’s. Instead of making a line with different colored markers in MATLAB, we will be making a multi-color line in MATLAB. This is actually stretchig the truth a little since lines have exactly one color in MATLAB. What we really... 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 >>

Using Datetick with Plotyy in MATLAB 2

Posted by Doug Hull,

Recently, I needed to plot two different sets of time series data on the same axes, but they were at different scales. In this simplified example, I show how you can change the x-labels to display the month name. This requires you capture the handles of the axes created... read more >>

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