bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 361 - 370 of 573

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… 더 읽어보기 >>

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… 더 읽어보기 >>

Using debugger to walk through code. 5

Sometimes, when you are given a piece of code, it works well and you want to learn from it. Reading through the code is not always that helpful if done all at once. It is too much to process. … 더 읽어보기 >>

Setting reverse and log properties for an axis

This MATLAB video tutorial shows you how to reverse the direction of an aixs or to change an axis to log scale. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… 더 읽어보기 >>

MATLABdo: The Way of MATLAB 5

I work in technical support, so very often I get strange requests. Really strange. My first question is “Why do you want to do that?” The reason I ask this is very often new… 더 읽어보기 >>

MATLAB Optimize an algorithm that the profiler can not help

I very much advocate “No premature optimization” because until the code is running and pushed through the profiler, it is difficult to know where the bottlenecks of speed are. In this… 더 읽어보기 >>

How to fix common indexing errors with for loops 6

This video shows how to fix common errors in MATLAB when indexing into a vector or matrix in a for loop. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… 더 읽어보기 >>

Posts 361 - 370 of 573

이 게시물은 작성자 개인의 의견이며, MathWorks 전체의 의견을 대변하는 것은 아닙니다.