Doug's MATLAB Video Tutorials

Catch errors early with simple visualizations

Posted by Doug Hull,

Catch errors early with simple visualizations The sooner you find an error, the less expensive it is to find and fix. In MATLAB it is really easy to do quick visualizations of your data. When it is this easy, you should be doing these little reality check tests frequently. In this video, we show... read more >>

Using one callback function for multiple UI objects in GUIDE 1

Posted by Doug Hull,

Using one callback function for multiple UI objects in GUIDE By default, GUIDE creates one callback function for every object in a UI. Sometimes, you want to have one callback function serve multiple objects. This video shows one way to do this, by manually editing the callback property for multiple objects to point to the same callback function. This trick... read more >>

MATLAB: Manipulating the data in a UItable in GUIDE

Posted by Doug Hull,

MATLAB: Manipulating the data in a UItable in GUIDE If you have a UItable in a UI made in GUIDE, you might want to change that data in a callback. For instance, you might want to change the values or increase the size of the dataset. This short video shows you the process to get the data... read more >>

Knowing when to optimize your graphics in MATLAB

Posted by Doug Hull,

Knowing when to optimize your graphics in MATLAB The MATLAB user’s question in this video was about optimizing their graphics in MATLAB. They were worried that the architecture they were choosing would be too slow. One test is worth a thousand expert opinions. Before starting to do some difficult optimization in your code in the... read more >>

Interactively editing a colormap in MATLAB 1

Posted by Doug Hull,

Interactively editing a colormap in MATLAB I recently wanted a colormap that was distinctive. I wanted the zero values to be one color while the negative and positive values were different shades. This video shows how to do this interactively. The skills shown here work for lots of different colormap tasks. After I did... read more >>

Custom interactive graphics in MATLAB 3

Posted by Doug Hull,

Custom interactive graphics in MATLAB Knowing how to use callbacks in MATLAB allows you to customize your graphics and make them more interactive. This short video shows you how to highlight a line in MATLAB by clicking on it. ... read more >>

When only small speed improvements are possible in MATLAB 2

Posted by Doug Hull,

When only small speed improvements are possible in MATLAB The profiler is very important when you want to speed up your code. It is nearly impossible to know where the bottleneck will be in your code until it is written and tested. Often times there are basic things you can do to speed your code. These... read more >>

Using Cody for algorithm development 1

Posted by Doug Hull,

Using Cody for algorithm development Do you need to develop an algorithm in MATLAB? Do you have tests in MATLAB that would tell you if the algorithm were working correctly? If you do, you might not need to actually write the MATLAB code. If the algorithm can be described in an interesting... read more >>

Monte carlo testing of the Luhn checksum in MATLAB

Posted by Doug Hull,

Monte carlo testing of the Luhn checksum in MATLAB This video builds on the last one. A quick monte carlo test is built to see if the Luhn Algorithm really will detect transpositions. The testing indicates that only one pair of numbers transposing is undetected. ... read more >>

Luhn checksum implemented in MATLAB

Posted by Doug Hull,

Luhn checksum implemented in MATLAB The Luhn algorithm is a fast checksum that allows you to know if an entered series of numbers has any of the repeated digits or transpositions that are common when typing numbers in. By having a simple checksum, you can validate a number before doing a more costly database... read more >>

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