bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 451 - 460 of 568

Video tutorial: 3d indexing 4

The MATLAB user has this: clear clc M(:,:,1) = [1,2;3,4]; M(:,:,2) = [21,22;23,24]; J = [1,2; 2,1]; They want this: ans = [1 22 23 4] They tried this: D = M(:,:,J) % This doesn’t… 続きを読む >>

Video tutorial: Verbal code review

Talking through your code is an excellent way to find bugs. By discussing the code you have written line by line, you are forced to understand it better. This is a common practice at most software… 続きを読む >>

Video tutorial: Tolerances in comparisons 4

Sometimes you will do a calculation where the answer looks like ‘0’ or ‘1’ or some other number like that. The natural thing to do is to do a test like this: if (answer ==… 続きを読む >>

Video tutorial: Infinite series 3

In this short video, I explore the math behind this joke: An infinite number of mathematicians walk into a bar. The 1st orders a 1 beer. The 2nd orders 1/2 a beer. The 3rd orders … 続きを読む >>

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

Contest: Final wrap up 2

Well, it was a great contest this season. I was very happy to see that each King of the Hill tended to get arguably better than the prior. I wanted to find out how much better, so I used the actual… 続きを読む >>

Contest: Darkness commentary

I have been waiting until the daylight portion of the ArmyAnts contest to post this commentary. Jan has done an excellent job with his algorithm. He made only one entry in that time period, and he… 続きを読む >>

Contest: Army Ants 2

I love the MATLAB contest, I am not sure if it is more fun to play the contest or to help design and administer it. Either way, I am looking forward to seeing a lot of really great algorithms from… 続きを読む >>

Video Tutorial: MATLAB basics, LINKPROP

I think it is best to do these tutorials based on solving realistic coding challenges. In helping to write the code for the next MATLAB contest, I had a situation where I wanted two images to be… 続きを読む >>

Video: Saving the state of a GUI 13

A question that comes across my inbox from time to time is how to save the state of a GUI between session. There are few methods for doing this, one is using the HGSAVE command to save the .FIG file… 続きを読む >>

Posts 451 - 460 of 568

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