Stuart’s MATLAB Videos

Watch and Learn

Posts 41 - 50 of 208

Results for: Level: Basic

Polar surface plot in MATLAB 2

MATLAB does not have a polar surface plot built in. You can use a normal surface plot if you convert your polar data into Cartesian with the pol2cart command. We also cover how to get rid of the… read more >>

Speeding up User Interfaces in MATLAB with profiler 4

Sometimes when you are working on a User Interface you want to use the profiler to speed up the code. However, with a UI so much time can be spent by the user rather than the code of interest that… read more >>

Using otherwise to throw errors in a switch case

In some code there is an enumerated set of choices. People will use a switch case statement to check for all but one choice and then catch that last one in the ‘otherwise’ block of their… read more >>

Persistent variables in MATLAB 7

There are situations where you want MATLAB to remember the value of a variable from one call of a function to another call of that function. We show to use a persistent value to accomplish this. … read more >>

Adding UICONTROLS to MATLAB without GUIDE for simple interactive figures 7

There are often small tweaks to functionality that you would like for a figure in MATLAB. This video shows how to add a button to a figure that will allow you to toggle the units of a y axes between… read more >>

Simple visualizations for a statics problem in MATLAB

A colleague was trying to draw some structures and do basic static analysis on them. He wanted to write a routine that would draw a pinned beam given the locations of the two pins. This can be done… read more >>

Introduction to GUI building with GUIDE in MATLAB 11

As we approach video number three hundred on this blog, I thought it was time to remake the original video that got this all started. I still refer people to it on a weekly basis. This shows you… read more >>

Indexing to make an image in MATLAB 1

I got a quick question today on how to make a diamond appear on an image in MATLAB. This is really an exercise in indexing and for loops in MATLAB. Let’s see how you can make an image in… read more >>

Visualizing random walk data (3/3)

Continuing with the random walk data: We will be bootstrap sampling the prior data to get estimates of what the next series of samples could look like. if (typeof(playerLoaded) === ‘undefined’)… read more >>

Visualizing random walk data (2/3) 2

This week we do a code review of some random walk data, making a heatmap with adjoining histograms to better understand the distribution of data. It shows the implementation of visualizations… read more >>

Posts 41 - 50 of 208