Stuart’s MATLAB Videos

Watch and Learn

Posts 11 - 20 of 27

Results for: 2016

Displaying Progress Status of Long Running Script, Part 4: Display-Erase Utility 4

Sometimes when displaying the progress of a long running script, there is so much output at the command window that there is too much to scroll through or the buffer fills up and you can’t go… read more >>

Some Uses of the MATLAB Function inputname 9

Sometimes I need to display the name of a variable as a character array. This can help with the updating of variable names in code and automating the importing or exporting of multiple variables to… read more >>

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

This code-along video is the third in a series where I’m creating a MATLAB function to split a URL into component parts. Here I update another script to make use of this new function but it… read more >>

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 >>

Posts 11 - 20 of 27