1、第五讲道客巴巴matlab句柄绘图和GUI父对象子对象图形对象之间的关系为父代与子代的关系窗口1窗口n窗口2界面控制界面菜单轴线面字块像01234567-1-0.8-0.6-0.4-0.200.20.40.60.81窗口对象线对象轴对象0102001020-10010-505-1-0.500.51x=-pi tp picos(x)value of the cosinecos(x)=0.7071002003000501001502000-1-0.500.51面对象轴对象像对象块对象线对象文字对象 left,bottom width,height 二维画线 三维画线确定标注位置标注字符串01234
2、56789100123456789100246810012345678910024681001234567891001234567891001234567891001234567891001234567891001234567-1-0.500.5101234567-1-0.8-0.6-0.4-0.200.20.40.60.8101234567-1-0.500.5101234567-1-0.8-0.6-0.4-0.200.20.40.60.81y11=get(hh(2),ydata);y22=y11/2;set(hh(2),ydata,y22)set(hh(3),linestyle,:)0123
3、4567-1-0.8-0.6-0.4-0.200.20.40.60.8101234567-1-0.8-0.6-0.4-0.200.20.40.60.8101234567-1-0.500.5101234567-1-0.500.5101234567-1-0.8-0.6-0.4-0.200.20.40.60.8101020300102030-10-5051002040600204060-10-50510051015202530051015202530-8-6-4-20246810024681 01 21 4-1-0.8-0.6-0.4-0.200.20.40.60.8101 02 03 04 05 001 02 03 04 05 0-8-6-4-2024681 001 02 03 04 05 001 02 03 04 05 0-8-6-4-2024681 001 02 03 04 05 001 02 03 04 05 0-8-6-4-2024681 0