bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 441 - 450 of 570

Dynamic field name usage 17

This short video shows how you can make your code shorter, more flexible, and readable by using a string variable to reference a field in a structure. This is called dynamic field name reference or… 続きを読む >>

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… 続きを読む >>

Puzzler: optimize this 17

Often when I post code, there is a discussion of how to optimize it. I tend to subscribe to this maxim:

Rules of Optimization:
Rule 1: Don’t do it.
Rule 2 (for experts only): Don’t do… 続きを読む >>

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 … 続きを読む >>

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’,… 続きを読む >>

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… 続きを読む >>

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)… 続きを読む >>

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… 続きを読む >>

MATLAB example: Don’t reinvent the thermometer

My last post talked about finding MATLAB code from other people so that you do not have to reinvent it yourself. Eric, the author of the code I modified, challenged me to create “a new Matlab… 続きを読む >>

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… 続きを読む >>

Posts 441 - 450 of 570

これらの投稿は著者に属するものであり、必ずしも MathWorks の見解を示すものではありません。