bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Posts 161 - 170 of 469

Results for: Format: Video

Using try/catch in a While Loop to Repeatedly Execute MATLAB Code 3

You may be familiar with using try/catch statements to make your code robust to errors. Matt covered them in a series of posts. A try/catch statement will catch one occurrence of an error in the… read more >>

Creating a MATLAB Function to Split a URL into Component Parts, Part 2

This code-along video is the second in a series where I’m creating a MATLAB function to split a URL into component parts. Here I add more tests, return more components, and add a parameter to… read more >>

Creating a MATLAB Function to Split a URL into Component Parts, Part 1 3

I often need to break up a URL string into components such as protocol, hostname, file path, query parameters, etc. Here, I create a function to do this, similar to the fileparts function in… read more >>

Building a Matrix in a For Loop 5

On an existing post, a MATLAB user asked how to vertically concatenate a number of matrices taken from MAT-files. Here is a code-along of me working through a couple of options for this.
if… read more >>

Making a MATLAB Script to Compare Two Long Lists of Strings from Excel 2

I often need to compare long lists of strings, usually URLs. If I have less than a few thousand, and the data is already in Excel, I will use the MATCH and INDEX functions in Excel to do this…. read more >>

Creating a Utility to Close All MATLAB Base Functions Open in the Editor 3

When your MATLAB code encounters an error and you have “dbstop if error” enabled, the file in which the error occurs is opened in the editor (together with its calling files). When the… read more >>

saveValue Function for Tracking Metrics Over Time, Part 9: Fixing Errors in the Value Store 2

Sometimes when I record a variable with the saveValue function, it is a mistake, or it was a test, or it was some outlier that I do not want to keep forever. In this case, the simple method of… read more >>

Continuing a MATLAB Program That Has Crashed 4

It can be frustrating when a script that has been running for a long time, perhaps for many hours, fails just before it finishes. This video shows a couple of techniques to address this issue: saving… read more >>

Saving Data from MATLAB to Excel Using a Template 8

I often need to export data from MATLAB to Excel. As the files are used by others, I like to format them nicely for easy viewing and browsing. To do this, I simply create a spreadsheet with all the… read more >>

New MATLAB Feature in Release 2016a: Pause Button 12

In Release 2016a, you can now pause a running MATLAB program and enter debug mode. Here, I use this feature to stop a long running script to confirm it is working correctly.
if (typeof(playerLoaded)… read more >>

Posts 161 - 170 of 469