bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 151 - 160 of 208

Results for: Level: Basic

Reshape a matrix without using a for loop 70

RESHAPE is a very useful function, but it is something that a lot of MATLAB users do not discover until someone is looking at their code and says “Why are you using a for loop for… read more >>

Using parent child relationships to find figures 6

This was a question that came across my desk recently: “How do I know what figure numbers are already open?” The way to answer this is to query the “root” (always handle… read more >>

Debugging session 3

clear num = [1 1 1 1 1 1 1]; den = [1 2 3 0 5 6 7]; for i = 1: numel(den) if den(i) == 0 a = 1 else … read more >>

Exploring uitable properties 12

I got a question via e-mail that was asking how to set the data in a uitable. Setting the data in a uitable is as easy as: >> a = uitable >> set(a,’data’,… read more >>

Breaking up compound statements for the profiler 4

A statement like this: a = sin(x) + cos(y) + inv(z); makes it impossible to know which part of the calculation is the bottleneck. This video shows how to determine what is slowing your code… read more >>

Flow chart shows which visualization to use 5

Nathan over at FlowingData.com had a post that explains what visualization to use in different situations. Ultimately he linked to this chart from Andrew Abela of The Extreme Presentation(tm)… read more >>

Binning data in MATLAB 23

I have been reading the MATLAB questions in Stack Overflow for a few weeks, and here was a really good question that came through. With two vectors, x and y, bin the x values as if with a… read more >>

MATLAB example: Don’t reinvent the wheel 1

I love a good visualization of data, and often cringe when I see data in a table that would be much more effective as a graph. As with many people in Boston today, I am trying to decide what to do… read more >>

Puzzler: Intermediate sums 6

MATLAB challenges get thrown around the halls of The MathWorks with fair regularity. I thought this most recent one would make a good puzzler.
You have a matrix that has 3xN rows and you want to… read more >>

Video Tutorial: Using visualization to debug 3

A question came up on the MATLAB newsgroup about debugging a sorting algorithm. I thought this was an excellent opportunity to show how visualization of intermediate results would help to determine… read more >>

Posts 151 - 160 of 208