Stuart’s MATLAB Videos

Watch and Learn

Posts 11 - 20 of 33

搜索结果: Topic: Practical example

Read data from the web with URLREAD 27

I am blogging a little early this week because of the holiday. What holiday would that be? Square Root Day– 03/03/09. What makes this a particularly special event is that today’s video… 更多内容 >>

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… 更多内容 >>

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… 更多内容 >>

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… 更多内容 >>

Video tutorial: Debugging a logical indexing problem 4

I love getting well formed question and challenges from fellow MATLAB users. This week I got one that works very well as a video. The problem was trying to index into a vector with a vector of… 更多内容 >>

MATLAB Puzzler: Finding the two closest points 23

Here is a new MATLAB Puzzler. Given two vectors representing the X and Y coordinates of some points, find the two closest points in Cartesian space. n = 10; x = rand(1,n); y = rand(1,n); … 更多内容 >>

MATLAB Puzzler: Removing columns and rows from binary matrices 35

I am trying something new this week: the MATLAB Puzzler. Rather than just work one of the Practical Examples directly, I am doing it in two parts. The first I will pose the MATLAB puzzler and say… 更多内容 >>

Practical Example: Placing a sampling grid in a polygon part two 1

This is the second video in this series, it shows you how to run a very simplistic optimization. For a simple problem like this one, the algorithm is more than sufficient to find a correct answer to… 更多内容 >>

Posts 11 - 20 of 33