Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Setting the Strings in a Table to a Constant 2

Posted by Stuart McGarrity,

I have a table with many columns, some of which are stings. I want to set all the string values to a constant string.
Features covered in this code-along style video, which is less coherent than usual, include:

table, string, and repmat

Follow me (@stuartmcgarrity) if you want to be notified via Twitter… read more >>

Trying Out inputparser

Posted by Stuart McGarrity,

I’m going to try to use inputparser for the first time, to specify name-value pair parameters for my function.
Its been around for several years but I haven’t used it. Typically my functions are “old school” where parameters need to be in certain positions. I use varargin for optional additional parameters,… read more >>

Debugging a Failed File Import

Posted by Stuart McGarrity,

One of my continuously running MATLAB scripts just failed and has stopped at a breakpoint (I had set dbstop if error). So I need to debug it to understand why and fix it.
Features covered in this code-along style video include:

string arrays and processing with split, ismember, extractBefore
arrayfun
Debugging in general

Follow me… read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.