1 / 2
文档名称:

函数的subplot的使用.docx

格式:docx   页数:2页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

函数的subplot的使用.docx

上传人:012luyin 2016/6/7 文件大小:0 KB

下载得到文件列表

函数的subplot的使用.docx

相关文档

文档介绍

文档介绍:subplot 功能分割 figure ,创建子坐标系语法 h= subplot(m,n,p) or subplot(mnp) subplot(m,n,p,'replace') subplot(m,n,P) subplot(h) subplot('Position',[left bottom width height]) subplot(..., prop1, value1, prop2, value2, ...) h= subplot(...) 描述★h=subplot(m,n,p)/subplot(mnp) 将figure 划分为 m×n块,在第 p块创建坐标系,并返回它的句柄。当m,n,p<10 时,可以简化为 subplot(mnp) 或者 subplot mnp (注:subplot (m,n,p )或者 subplot (mnp )此函数最常用:subplot 是将多个图画到一个平面上的工具。其中,m表示是图排成 m行,n表示图排成 n列, 也就是整个 figure 中有 n个图是排成一行的,一共 m行,如果第一个数字是 2 就是表示 2行图。 p是指你现在要把曲线画到 figure 中哪个图上,最后一个如果是 1表示是从左到右第一个位置。) ★subplot(m,n,p,'replace') 如果所指定的坐标系已存在,那创建新坐标系替换它★subplot(m,n,P) 此时 p为向量,表示将 P中指定的小块合并成一个大块创建坐标系, P中指定的小块可以不连续,甚至不相连。比如 subplot(2,3,[2 5]) 表示将第 2和5小块连成一个大块; subplot(2,3,[2 6]) 由于 2和6不连续也不相连,此时表示将第 2、3、5和6 四块连成一个大块,相当于 subplot(2,3,[2 356]) ★subplot(h) 将坐标系 h设为当前坐标系,相当于 axes(h) ★subplot('Position',[left bottom width height]) 在指定位置创建一个新坐标系,等效于 axes('Position',[left bottom width height]) ★subplot(..., prop1, value1, prop2, value2, ...) 在创建坐标系时, 同时设置相关属性, axes 属性参见附录★h=subplot(...) 返回所创建坐标系的句柄注意 1)使用 subplot 新建的 axes 块如果与已存在块重叠, MATLAB 将