Stuart’s MATLAB Videos

Watch and Learn

Posts 11 - 20 of 42

Results for: 2010

Unexpected is not wrong

I just worked on a case that typifies a situation I see in MATLAB fairly often. Unexpected results are not necessarily wrong results. I am a big fan of the “sanity check”, where if… read more >>

Using debugger to walk through code. 5

Sometimes, when you are given a piece of code, it works well and you want to learn from it. Reading through the code is not always that helpful if done all at once. It is too much to process. … read more >>

Setting reverse and log properties for an axis

This MATLAB video tutorial shows you how to reverse the direction of an aixs or to change an axis to log scale. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… read more >>

MATLABdo: The Way of MATLAB 5

I work in technical support, so very often I get strange requests. Really strange. My first question is “Why do you want to do that?” The reason I ask this is very often new… read more >>

MATLAB Optimize an algorithm that the profiler can not help

I very much advocate “No premature optimization” because until the code is running and pushed through the profiler, it is difficult to know where the bottlenecks of speed are. In this… read more >>

How to fix common indexing errors with for loops 6

This video shows how to fix common errors in MATLAB when indexing into a vector or matrix in a for loop. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… read more >>

MATLAB: Setting custom tick labels 6

This short video shows how to change the tick labels on a plot. You might want to do this for bar plots, or just a regular plot that you want to customize. if (typeof(playerLoaded) ===… read more >>

Building strings from variables 1

Lots of MATLAB functions want strings as inputs. Very often MATLAB users want to use the value of a variable in that string. This video tutorial shows how to do that. if (typeof(playerLoaded)… read more >>

Debugging is faster with save and load 10

When you have a bug that occurs in a script of function that takes a long time to run, you can use this technique to get to the bug faster in MATLAB. if (typeof(playerLoaded) === ‘undefined’) {var… read more >>

using temporary variables 12

Even though you can have the output of one function act as the input to another directly, this can be confusing to read. Sometimes, using temporary variable will allow you to clarify your… read more >>

Posts 11 - 20 of 42