Stuart’s MATLAB Videos

Watch and Learn

Results for: Code-Along

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

Posted by Stuart McGarrity,

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 turns into a pretty slow debugging exercise.
if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined()… read more >>

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

Posted by Stuart McGarrity,

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 specify which components to return.
Topics I cover in this part include:

Writing tests for functions using assert
Matching regular expressions… read more >>

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

Posted by Stuart McGarrity,

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 MATLAB.
Topics I cover in this code-along style video include:

Writing a function
Writing tests for functions using assert
Matching regular expressions using regexp
Using data… read more >>

Building a Matrix in a For Loop 5

Posted by Stuart McGarrity,

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 (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== ‘undefined’) {videojs(“mathworks-brightcove-player”).on(‘loadedmetadata’, function() {playerLoaded = true;});}… read more >>

saveValue Function for Tracking Metrics Over Time, Part 7: Specifying datetime Input Format

Posted by Stuart McGarrity,

In the seventh video in this series about developing functions to store values over time, I struggle a lot with specifying the input date for a datetime object. This video uses the code-along style.
if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== ‘undefined’) {videojs(“mathworks-brightcove-player”).on(‘loadedmetadata’, function() {playerLoaded =… read more >>