Matlab 版 (精华区)

发信人: zjliu (秋天的萝卜), 信区: Matlab
标  题: [转载]关税1
发信站: 哈工大紫丁香 (Thu Jun 12 21:16:48 2003)

figpos=[100 200 150 125];
h_fig=figure('Position',figpos);

for framenumber=1:20
    subplot(121);
    plot(sin(0:0.1:(2*framenumber*pi/20)),...
         0:0.1:(2*framenumber*pi/20),'--r');
     axis([-1 1 0 2*pi]);
     subplot(122);
     plot(0,exp(-(framenumber-1)/3),'*g');
     axis([-1 1 0 1]);axis('off');
     drawnow;
     M(framenumber)=getframe(h_fig);
 end
 pause
 delete(h_fig)
 h_newfig=figure('Position',figpos)
 axis off
 movie(h_newfig,M, -5)

练习:
 1  drawnow是作什么用的?
 2  movie(h_newfig,M,-5)  中-5是什么意思?

--
╔═══════════════════╗
║★★★★★友谊第一  比赛第二★★★★★║
╚═══════════════════╝

※ 来源:.哈工大紫丁香 bbs.hit.edu.cn [FROM: 202.118.229.92]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.687毫秒