Stuart’s MATLAB Videos

Watch and Learn

Posts 11 - 20 of 544

Debugging a MATLAB Code Section

You many not be aware that you can debug the code contained inside a section (marked by %%) without needing to run your entire file. This can be useful when you are working on a small area of code,… read more >>

Refactoring Code to Functions Manually

Here I want to modularize and re-use part of my code by converting it to a function, but in this case the automatic conversion in the editor is not supported, so I need to do it manually.
Features…

Calling the Command Line Tool FFmpeg to Concatenate Video Files

I often need to call external command line tools from MATLAB to carry out various specialized tasks. Here I plan to make a utility that calls the FFmpeg tool to concatenate video files.
Features…

Modifying My Script Indexing to Work with parfor

I’m trying to parallelize a script that takes a few hours to run. I normally use parfor, the simplest parallel construct, but to do that, I need to modify how I index through my… read more >>

Updating My TCP/IP Link to Support Unicode Characters 1

I was told by a colleague that one of by MATLAB string searching web apps did not work for Chinese strings. After investigating, I realized the way I implemented it limited support to ACSII… read more >>

Recovering Data from a Failed Function Using assignin 1

Here, my code has errored-out and paused in a function. I want to recover the data because the code had been running for a few hours. I’ve done this before by saving the data temporarily to a… read more >>

Updating a Static Method to Return the Latest File in a Folder

I want to update a static method in a class to return the latest file in a folder rather than a fixed filename.
Features covered in this code-along style video include:

static methods
dir, tables,…

Adding a Column to a Table in My Web App

Here I want to add a “Row Totals” column to a pivot table in the web app that I’m working on. I need to add my UI control and update my code to calculate the totals column and add… read more >>

Converting a Script to a Function Example

Here is an typical example of converting a script to a function. In this case, as well using the code analyzer to specify the function name, I need to define input arguments and manage a sub… read more >>

Developing a Simple Mechanism to Log Metric Values

A few years time ago I developed a mechanism and MATLAB function to track values over time I was interested in monitoring. However, I found that storing the data in MAT files made it inconvenient to… read more >>

Posts 11 - 20 of 544

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