Stuart’s MATLAB Videos

Watch and Learn

Posts 1 - 10 of 42

搜索结果: 2010

Tradeoffs: Code complexity vs data storage 2

This video discusses a code tradeoff of increasing code complexity so that less data needed to be stored. This video discusses how for small cases, code complexity often rules over other… 更多内容 >>

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

How to loop until a button is pushed in MATLAB 8

I had a question recently about having a process occur until a button is pressed in a GUI (or while a button is pressed). This video shows how a button can control the output of a stream of random… 更多内容 >>

Subplot vs axes 4

Subplot is a convenience function that wraps around the lower level axes function. It simplifies the layout process. As a higher level function, it does some bookkeeping for you. This debugging… 更多内容 >>

MATLAB contest: sneak peak

There are two big events coming up that I want to share with you: MathWorks Virtual Career Fair on Thursday November 11th. This is an opportunity to talk directly with Engineers and Hiring… 更多内容 >>

Making a matrix in a loop in MATLAB 69

A for loop is used to construct a simple matrix with an underlying pattern. Pre-allocation is addressed in the second half of the video. if (typeof(playerLoaded) === ‘undefined’) {var… 更多内容 >>

Simple transparent graphics in MATLAB using alpha 1

Transparency is a nice feature to make your visualizations look better and it also allows you to show data more clearly (pun not intended, but appreciated after the fact). It means that your data… 更多内容 >>

Formatting code for readability 3

The use of whitespace can make your code more pleasant to read. This is not just a nicety, it actually makes it easier to see the structure of your code and makes it more clear where code breaks the… 更多内容 >>

Writing out your workspace variables as a script with Simulink.saveVars 4

I almost never use Simulink, so I never saw this function before (requires Simulink). Try this at the command line: a = 1; b = 2.5; c = ‘A string’; d = {a, b,… 更多内容 >>

Deleting in a loop 5

Ever try to delete some values in a vector by looping through from beginning to end? I have, and failed because the indexing got confused as the vector changed. Here is one solution to that class… 更多内容 >>

Posts 1 - 10 of 42