bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 261 - 270 of 570

Combinatorics

I was asked recently how to generate all the combinations from two possible outcomes. It reminded me of a recent post on Flowing Data about the sum of two dice. This is a nice little function,… 更多内容 >>

Making a line visible over an image in MATLAB 5

It can be difficult to see a line that is drawn over an image. The line is often lost in the background colors. That is why cursors are colored as they are, so that they are visible on any… 更多内容 >>

Quick Tip: Speeding up debugging iterations 4

This week’s video is a quick tip to help speed up iterations when debugging MATLAB code. If your code requires user interactivity, such as selecting a file or folder from a dialog box, consider… 更多内容 >>

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

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

Generalizing the access to an array of structures in MATLAB 2

Recently a MATLAB user asked me how to make it possible to work with an array of structures in such a way that she could filter the array of structures and then combine the remaining fields. Once… 更多内容 >>

Using ‘dbstop if error’ and conditional breakpoints to debug MATLAB 1

Sometimes MATLAB throws an error, but because the error is inside of a function you can not see what caused this error. By telling the debugger to stop execution under certain conditions or right… 更多内容 >>

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

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

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

Posts 261 - 270 of 570

这些文章由作者发布,不一定代表 MathWorks 的意见。