Add colorbar to .avi file

1 view (last 30 days)
Johan
Johan on 18 Jun 2012
Hi!
Im doing a temperature illustration and saving it as an avi-file. My problem is that the colorbar doesn't shows in the avi-file. Is there any one who can help me to add the bar in the avi file?
H(1:(round(xvarde(2))-round(xvarde(1)))) = struct('cdata',[],'colormap',[]);
g=1
for n=round(xvarde(1)):round(xvarde(2))
figure(5)
pcolor(x,y,z(:,:,n)), caxis([Tmin Tmax]), colorbar;
for i=g
H(i)=getframe
g=g+1
end
end
movie(H(1:(g-1)))
movie2avi(H(1:(g-1)),'Inspelning')

Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!