# Displaying the Progress of a Long Running MATLAB Script, Part 1: fprintf3

Posted by Stuart McGarrity,

I have a number of scripts that take several hours to run and I like be able to track their progress. I use a few techniques to do this, including this first example, which just uses fprintf. (Remember you can switch the video player to full screen to make it... read more >>

# Signoff15

Posted by Doug Hull,

After 14 awesome years at MathWorks, I am changing careers. It has been great working and learning with all of you. If you are new to this blog, go back and watch my other videos, they are still as useful today as they always were. Keep watching here to see who... read more >>

# Visualizing retention data over time in MATLAB

Posted by Doug Hull,

I have some data showing how many people come into and leave a group over time. I wanted to see the retention of members from one month to the next. Using area plots I was able to make a “stacked area plot” to get the visualization I wanted. This... read more >>

# Visualizing a Simple Saddle Point Algorithm in MATLAB2

Posted by Doug Hull,

There are lots of places in optimization and game theory where you would want to identify a saddle point on a two-dimensional surface. In this example we find and visualize the saddle point of a surface. We are trying to maximize the value of the surface by our choice in... read more >>

# Editing an Existing Figure File in MATLAB

Posted by Doug Hull,

The best way to modify a MATLAB figure is to just modify the code that generated it. I prefer this because it is better to be able to regenerate a figure from code if you want to keep modifying it later, and your workflow is visible for later inspection. Sometimes... read more >>

# Selectively Changing an Image in MATLAB with Logical Indexing1

Posted by Doug Hull,

A MATLAB user on MATLAB Answers wanted to know how to change all the pixels in an image that were below a certain threshold. The answer was correct, but very terse. I wanted to expand upon the question with an explanation of logical indexing in MATLAB. ... read more >>

# MATLAB: In an assignment A(I) = B, the number of elements in B and I must be the same.3

Posted by Doug Hull,

The very common MATLAB error: “In an assignment A(I) = B, the number of elements in B and I must be the same.” occurs when one side of an assignment has a dfferent dimension than the other. So for instance the left side of the assignment might be... read more >>

# Rotate Axes Labels in MATLAB

Posted by Doug Hull,

The new release of MATLAB R2014b brings a new graphics engine. This allows for some new capabilities such as rotating tick labels and using dot notation in referencing graphics properties. These are a couple of small but very useful parts of this release. ... read more >>

# Reading parameters from a file in MATLAB1

Posted by Doug Hull,

In last week’s post, I showed how to generate code in MATLAB to automatically read in a file. In this video I show how to make a simple wrapper function around code generated in that way. This wrapper will allow MATLAB to quickly look up a parameter in... read more >>

# Easy custom Excel import to MATLAB2

Posted by Doug Hull,

I recently was asked how to import from Excel but only bring in a certain part of the file. You might want to do this if you have headers or just want a small part of the spreadsheet to come into MATLAB. In this video we see how... read more >>

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