查看单个帖子
旧 2008-11-08, 19:39   #4
remnant
普通会员
 
注册日期: 2008-04-12
年龄: 46
帖子: 67
声望力: 19
remnant 正向着好的方向发展
默认 回复: 请教一个棘手的问题

如果想在一个坐标系下画多个图:
方法1:plot( x1, y1, x2, y2, x3, y3 ... );
方法2:plot( x1, y1 ); hold 'all'; plot( x2, y2 ); .....
如果想在一个窗口的多个坐标系下画图:
subplot( 2, 2, 1 ); % 2x2 个坐标系中的第1个, 2x2是可变的,如subplot( 3, 2, 1 );
plot( x1, y1 );
subplot( 2, 2, 2 ); % 2x2 个坐标系中的第2个
plot( x2, y2 );
......
remnant 当前离线   回复时引用此帖