Stuart’s MATLAB Videos

Watch and Learn

Posts 11 - 20 of 67

搜索结果: Level: Advanced

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

Example: Speed up MATLAB code by profiling

Sometimes the performance of MATLAB code can depend greatly on the algorithm or the specific functions called. In this example, we show how we use the profiler (and good knowledge of logical… 更多内容 >>

Simple test scripts in MATLAB

Testing your code is important to make sure that it works correctly and continues to work correctly as you modify it. The more long lived the code, the more important testing becomes. I… 更多内容 >>

Choosing algorithm based on data size. 2

Today we will look further at the cypher algorithm, specifically the randomness of this algorithm. There are two different distributions to look at: distribution of single numbers (1,2,3,4) and the… 更多内容 >>

Project Euler on Cody 1

I am a big fan of Project Euler. There are a series of math and programming problems there that people often use in honing their programming skills. Traditionally, there is one correct integer… 更多内容 >>

Passing data between GUIDE callbacks without globals in MATLAB 11

Very often MATLAB users want to share data between different callbacks that they have in their MATLAB GUIs. This video shows a technique that is applicable for when the data being shared is already… 更多内容 >>

Animating an objects trajectory in MATLAB with HGtransform 3

This video shows how you can use MATLAB to do the visualization of a moving object with HGtransform. This data was syntetic, but it would be easy to read the data from a file and show the trajectory… 更多内容 >>

How to save and restore state of a GUI in MATLAB 12

When constructing a GUI, sometimes it would be appropriate for the GUI to start out in the last state it was in when it was closed. This means the same values selected in list boxes, same radio… 更多内容 >>

Unexpected is not wrong

I just worked on a case that typifies a situation I see in MATLAB fairly often. Unexpected results are not necessarily wrong results. I am a big fan of the “sanity check”, where if… 更多内容 >>

Posts 11 - 20 of 67