Stuart’s MATLAB Videos

Watch and Learn

Results for: 2017

Pause MATLAB to Add a Breakpoint

Posted by Stuart McGarrity,

Another nice benefit of being able to pause MATLAB now is that you can add a breakpoint after you have started running your code. Here I give an example of doing that.
Features covered in this code-along style video include:

Pause button
Breakpoint setting

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

Cody Code-Along: R2016b Feature Challenge – String Array Basics, Part 4 8

Posted by Stuart McGarrity,

In this next “Cody Code-Along” for the Release 2016b Features Challenge I do the opposite of the previous one and convert a string array with missing values to a cell array.
Features covered in this code-along style video include:

string, cellstr

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

Cody Code-Along: R2016b Feature Challenge – String Array Basics, Part 3

Posted by Stuart McGarrity,

Here I continue with “Cody Code-Alongs” for the Release 2016b Features Challenge. This one looks at converting between strings and cell arrays of character arrays with missing values. I could not however figure out a better way how to set string elements to <missing>.
Features covered include:

string, cellstr

Follow me (@stuartmcgarrity) if… read more >>

Making a MATLAB Function to Re-Use Code

Posted by Stuart McGarrity,

Its common when you are developing code to find that you want to re-use a piece of it for some new dataset or task. Instead of copying and pasting, always consider writing a function. Here is an example of me doing this, moving the code out and updating my script… read more >>