在GUI上建了两个坐标系,怎样在指定的坐标系上画图?
(2014-06-10 10:02:06)分类: matlab |
如是用guide创建的,则可以用如下方法:
axes(handles.axes1);%选坐标轴1作图
plot(.......);
axes(handles.axes2);%选坐标轴2作图
plot(.......);
如果是自动编程生成的GUI,则可以用如下方法:
plot(.....,'parent',axes_handle);
axes(handles.axes1);%选坐标轴1作图
plot(.......);
axes(handles.axes2);%选坐标轴2作图
plot(.......);
如果是自动编程生成的GUI,则可以用如下方法:
plot(.....,'parent',axes_handle);
前一篇:matlab句柄之理解
后一篇:matlab图像放大和缩小