I was using the following code to make the movie from the hdf files
and for some reason it didn't work this time after some soul searching I realised that the
matlab command FIGURE caused the whole problem. so I removed it from the code and VOILA!
filename = ['3dmovie5'];
%let's create the first avi file
aviobj = avifile(filename); %opens file called name
aviobj.Quality=100;%quality of mImages
aviobj.Compression='None'; %compression
aviobj.Fps=6;%frames per second
ImFirst=20;
ImLast=90;
for im=ImFirst:10:ImLast
im
hf = figure('visible','off');
cd('L:\osiris\monoenergetic\moresmoothe\parandallagain\MS\FLD\E1');
[marray1,z,r]=openhdf(['E1-0000',num2str(im),'.hdf']);
a=1;
b=70;
c=1;
d=160;
field=[marray1(a:b,c:d)];
FIGURE;mymeshc(z(c:d)*23.8,r(a:b)*23.8,field*21);
axis([0 200 0 100 -40 40])
set(gca,'View',[29 22]);
xlabel(' z (\mu m)');
ylabel('r (\mu m)');
zlabel( 'E (GV/m)');
set(gca,'XMinorGrid','on')
set(gca,'YMinorGrid','on')
set(gca,'ZMinorGrid','on')
Friday, June 1, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment