在使用matlab的时候。
有时数据是一帧一帧数据读取出来的,所以希望能够通过figure来一帧一帧的显示这些数据:
close all;clear all;clcfram = 100;x = sin(2*pi*100*(1/1000:1/1000:1024/1000));y = cos(2*pi*100*(1/1000:1/1000:1024/1000));
h1 = figure;h2 = figure;
set(0,'CurrentFigure',h1);plot(x,'-r');set(0,'CurrentFigure',h2);plot(x);
新闻热点
疑难解答