Tim: I had the same ghost image problem; I fixed it by adding 'set(gcf, 'Renderer', 'zbuffer') around line 18 (after 'set(gca, 'nextplot' ...). I also changed the background color to white because the default was grey by using 'set(gcf, 'Color', [1 1 1])'. Hope that helps.

Comment only

09 Jul 2012

Animated GIF
How to generate an animated GIF from MATLAB

I cannot get the code to run using Matlab version 7.12.0.635 (R2011a) but it will run using Matlab version 7.10.0.499 (R2010a). I have the Image Processing Toolbox for the 2011 version but not the 2010 version. Does anyone have the “fix” for newer version of Matlab? All I get is a single image with a “ghost” of what is behind the figure on the screen.

I was tooo lazy and didn't check the above comments before I posted mine. Actually my problem is same as srinivas's posted. Now I downloaded version 2 and it is fixed. Thank you so much, David!!

I met a problem when I tried the following simple commands.
a=[1,2,3,4]; b=[2,3,4,5];
pp(a,b)
Then error showed up:
??? For colon operator with char operands, first and last operands must be char.
Error in ==> pp>PlotTrace at 1262
x =
norm_r(PlotStartFlag(i):PlotBreakFlag(i)).*cos(theta(PlotStartFlag(i):PlotBreakFlag(i)));
Error in ==> pp at 287
PlotTrace(ThetaPlot, RPlot, PlotProperties, Traces{i+1});
===================
Can anybody help me with this?
Thanks.

Comment only

02 Apr 2012

Animated GIF
How to generate an animated GIF from MATLAB

Comment only