Stuart’s MATLAB Videos

Watch and Learn

Results for: 2015

saveValue Function for Tracking Metrics Over Time, Part 5: Using datetime Objects

Posted by Stuart McGarrity,

In the fifth video in this series about developing functions to store values over time, I use the datetime object to store the timestamp associated with the value. 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 >>

saveValue Function for Tracking Metrics Over Time, Part 4: loadValue 3

Posted by Stuart McGarrity,

In the fourth video in this series about developing functions to store values over time, I write the loadValue function to retrieve previously stored values. 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 = true;});} else {setTimeout(isVideojsDefined,… read more >>

saveValue Function for Tracking Metrics Over Time, Part 3: Storing as a Table 2

Posted by Stuart McGarrity,

In the third video in this series about developing functions to store values over time, I use a MATLAB table to store variables in the MAT-file. 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 = true;});} else… read more >>

saveValue Function for Tracking Metrics Over Time, Part 2: Using a MAT-File Object

Posted by Stuart McGarrity,

In the next video in this series of videos about developing a set of functions to store values over time, I investigate using the MAT-file object to store the values. 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()… read more >>

MATLAB Code-Along Videos 6

Posted by Stuart McGarrity,

The next set of videos that I post, starting tomorrow, use a style similar to “code-along” videos. This style has been used to capture real-time software development in other languages (e.g. on Twitch TV) after it became popular with video game play capture. It includes all the mistakes, twists and turns, back… read more >>

Reading Web Pages, Part 3: Speeding-up the Code

Posted by Stuart McGarrity,

In the third video in his series, Matt investigates speeding up his code, starting first by using the profiler to see where most time is spent.
if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== ‘undefined’) {videojs(“mathworks-brightcove-player”).on(‘loadedmetadata’, function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();
Download the example files used… read more >>

Reading Web Pages, Part 2: Using try/catch to Handle Errors 2

Posted by Stuart McGarrity,

In the next video in his series on reading web pages, Matt uses a try/catch statement to make his code more robust.
if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== ‘undefined’) {videojs(“mathworks-brightcove-player”).on(‘loadedmetadata’, function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();
Download the example files used in the video.
read more >>

Reading Web Pages, Part 1: Using webread 3

Posted by Stuart McGarrity,

This week, in the first of a series of videos, my colleague Matt Tearle demonstrates how to read web pages with the webread function. In this application, he reads a random Wiki page and follows the first link in the text to see how many steps it takes to get… read more >>

Displaying the Progress of a Long Running MATLAB Script, Part 3: Function Handle Utility 1

Posted by Stuart McGarrity,

Along with the examples in part one and part two of this series, another method I use to display the status of a long running script is a little utility I made that uses a function handle.
if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== ‘undefined’) {videojs(“mathworks-brightcove-player”).on(‘loadedmetadata’,… read more >>