clearframes;indexBegin=0;%begin index of data fileindexEnd=10;%end index of data fileshowType='StressZZ';forshowCircle=(indexBegin:indexEnd)load([fNamenum2str(showCircle)'.mat']);%load the saved filed.calculateData();%calculate the data of the model%d.showFilter('SlideY',0.5,1);%cut the model if necessaryd.showB=3;%show the framed.isUI=0;d.show(showType);%show the result%view(10*showCircle,30);set(gcf,'Position',[10,10,1000,600]);%set the size of the figureframes(showCircle+(1-indexBegin))=getframe();%record the figurepause(0.1);%pause 0.1 secondclose;%close the figureenddTime=0.5;%time step of GIFfs.movie2gif([fName(11:end)showType'33.gif'],frames,dTime);%save the gif;