figure和subplot的一些高级应用实例
13页1、程序源代码如下%0figureplot(sin(x);% hold axes and all lineseries properties, such as% ColorOrder and LineStyleOrder, for the next plot hold all plot(sin(x+(pi/4);%1figure seO/DefaultAxesColorOrderO 0 0,.DefaultAxesLineStyleOrder7-|-. |-|:)plot(sin(x)hold allplot(cos(x)hold allplot(log(abs(x)%2figurespheresetfgca/DataAspectRatiol 1 1,.PlotBoxAspectRatioJl 1 l,ZLim:06 0.6)%3figuresphereset(gca/CameraViewA ngle,get(gc 可,CameraViewA nglej 5)set(gca/CameraViewA ngle,get(gc 可,CameraViewA ngle)+5)axes(lpositi
2、on,z.l .1 .8 .6)mesh(peaks(20);axes(lposition,z.l .7 .8 .2)pcolor(l:10;l:10);%4figurex = 0:.01:pi/2;plot(x,tan(x)/-ro)%5axis(O pi/2 0 5)income = 3.2,4l,5O5 6;outgo = 2.5,4.0,3.35,4.9;subplot(2zlzl); plot(income)title(Income)subplot(2,l/2); plot(outgo)title(Outgo)%6figuresubplot(2,2,l)text(.5/.5,subplot(2,2zl),;,or subplot 221, FontSizelHorizontalAlignment/center) subplot(2z2,2)text(.5z.5z,subplot(2,2,2);or subplot 222, FontSizelHorizontalAlignment/center) subplot(2z2,3)text(.5z.5z,subplot(2,2,3)
3、;or subplot 223, FontSizelHorizontalAlignment/center) subplot(2z2,4)text(.5/.5,subplot(2z2z4),;or subplot 224, FontSizelHorizontalAlignment/center)%7figuresubplot(2,2,l 3)text(.5,.5,subplot(2z2zl 3),Fon tSizelHorizontalAlignment/center)subplot(2,2,2)text(.5,.5,subplot(2z2z2),.Fon tSizelHorizontalAlignment/center) subplot(2,2,4)text(.5,.5,subplot(2z2z4),.Fon tSizelHorizontalAlignment/center)%8figuresubplot(2,2,l:2)text(.5,.5,subplot(2z2zl:2),.Fon tSizelHorizontalAlignment/center) subplot(2,2,3)text(.5,.5,subplot(2z2z3),.Fon tSizelHorizontalAlignment/center) subplot(2,2,4)text(.5,.5,subplot(2z2z4),.Fon tSizelHorizontalAlignment/center)%9figurey = zeros(4,15);for k = 1:4y(k,:) = rand(lz15);subplot(2z 2, k)plot(y(k,:);endhax = axesCPosition1, .35, .35, .3, .3);bahax/EdgeColor/none)sehax/XTickzf)程序运行结果的一些图像Subplot的用法挺经典的,值得好好地学学。
《figure和subplot的一些高级应用实例》由会员ni****g分享,可在线阅读,更多相关《figure和subplot的一些高级应用实例》请在金锄头文库上搜索。
2023年房屋买卖按揭合同格式.doc
抛物线的切线问题卢妮
开学疫情防控工作方案1
2023年小学环保计划合集多篇环保行动计划.docx
2022年初中数学教研组第二期工作计划范本
高中生物第4单元第1章第2节细胞的分化教案中图版必修1
2023年出纳个人总结(3篇).doc
业务员月销售计划精选
2023年创新的英语作文.docx
幼儿园中班活动策划方案经典版(四篇).doc
大学英语精读2课后翻译题答案
员工晋升自我评价范文
2022年《镜花缘》心得体会500字.doc
2023年上学期初中班主任工作总结报告.DOC
市场部年度工作计划模板
Module4Unit1doyouwantsomerice.doc
地铁施工对邻近建筑物安全风险管理.doc
小学学校学期工作计划模板
教师师德师风培训工作总结范本(二篇).doc
2023年大一新生军训心得体会108.docx
2023-06-08 6页
2023-10-03 27页
2022-10-10 2页
2023-10-02 8页
2023-03-27 2页
2023-07-29 8页
2022-09-28 8页
2023-11-28 31页
2023-07-08 2页
2024-02-17 4页