数学建模常用的Matlab绘图总结

数学建模常用的Matlab绘图总结

ID:38522080

大小:900.02 KB

页数:11页

时间:2019-06-14

数学建模常用的Matlab绘图总结_第1页
数学建模常用的Matlab绘图总结_第2页
数学建模常用的Matlab绘图总结_第3页
数学建模常用的Matlab绘图总结_第4页
数学建模常用的Matlab绘图总结_第5页
资源描述:

《数学建模常用的Matlab绘图总结》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、饼状图Expenses=[201040122019515];ExpenseCategories={'Food','Medical','Lodging','Incidentals',...'Transport','Utilities','Gifts','Shopping'};MostLeastExpensive=(Expenses==max(Expenses)

2、Expenses==min(Expenses));h=pie(gca,Expenses,MostLeastExpensive,ExpenseCategories);Expenses=[201040

3、122019515];MostLeastExpensive=(Expenses==max(Expenses)

4、Expenses==min(Expenses));h=pie(gca,Expenses,MostLeastExpensive);legend('Food','Medical','Lodging','Incidentals',...'Transport','Utilities','Gifts','Shopping');Expenses=[201040122019515];MostLeastExpensive=[01010101];%分割h=pie

5、(gca,Expenses,MostLeastExpensive);legend('Food','Medical','Lodging','Incidentals',...'Transport','Utilities','Gifts','Shopping');x=[201040122019515];explode=[42222422];label={'Food','Medical','Lodging','Incidentals',...'Transport','Utilities','Gifts','Shopping',}';figure('color'

6、,'w','renderer','openGL');h=pie3(x,explode);h=findobj(h,'Type','text');set(h,{'string'},cellfun(@strcat,get(h,{'string'}),label,'un',0),'FontName','TimesNewRoman','FontSize',16);%set(h,{'string'},strcat(get(h,{'string'}),label));%cm=[7265137;14318458;1936049;41121201;...%6065150

7、;1898458;19316090;241121101]/255;colormap(jet),shadinginterpview(18,20),camprojperspectivelight('Position',[123],'Style','inf')lightinggouraudx=[201040122019515];explode=[42222422];label={'14%Food','7%Medical','28%Lodging','9%Incidentals',...'14%Transport','13%Utilities','4%Gift

8、s','11%Shopping',}';figure('color','w','renderer','openGL');pie3s(x,'Explode',explode,'Labels',label)%见Matlab_pie3s直方图Y=round(rand(5,3)*10);figure;subplot(2,2,1);bar(Y,'grouped');title('Group')subplot(2,2,2);bar(Y,'stacked');title('Stack')subplot(2,2,3);bar(Y,'histc');title('His

9、tc')subplot(2,2,4);bar(Y,'hist');title('Hist')stream=RandStream('mrg32k3a','Seed',4);y1=rand(stream,10,5);hb=bar(y1,'stacked');colormap(summer);holdony2=rand(stream,10,1);set(gca,'FontSize',14,'FontName','TimesNewRoman')hp=plot(1:10,y2,'marker','square','markersize',12,...'marke

10、redgecolor','y','markerfacecolor',[.6,0,.6],...

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。