Great functionality for those of us with pre-2011b versions. I had the same error as Vincent, and his solution worked for me too. Off the top of my head I couldn't figure out how to do the lshift and rshift, but I don't actually need them.
This is a very useful tool. One suggestion though: the text() command gets confused if there is more than one axis, so maybe you can set the current axis to Ha with axes(Ha) before the cell '%% Make XTickLabels'.
I had the same problem as Ines and Makarand, but I used a different solution. It might even be possible to include this in cbfreeze.m
I apply cbfreeze before the label, then the width doesn't change. After adding a second axis with a second colorbar, I find the handle to the old colorbar (as the only unknown colorbar handle) and then put the label on.
21 Sep 2010
The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file.
Author: David Foti
I had a few difficulties installing mpgwrite. Mostly just adjusting the path and /or current directory, but the error messages weren't very helpful. (The messages themselves were from mex, not mpgwrite.)
Then something more tricky:
"libmatlb.so: cannot open shared object file: No such file or directory."
The solution to this was on
and is just to overwrite the mpgwrite.mexglx in the mpgwrite directory with the one in mpgwrite/src
It also caused matlab to crash after producing the file. But I am happy with my 8.5MB mpg instead of a 1.3GB avi!!