没有合适的资源?快使用搜索试试~ 我知道了~
数学建模常用的Matlab绘图总结.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 155 浏览量
2021-10-12
14:31:39
上传
评论
收藏 771KB DOCX 举报
温馨提示
试读
11页
。。。
资源推荐
资源详情
资源评论
饼状图
Expenses = [20 10 40 12 20 19 5 15];
ExpenseCategories = {'Food','Medical','Lodging','Incidentals',...
'Transport','Utilities','Gifts','Shopping'};
MostLeastExpensive = (Expenses==max(Expenses)|Expenses==min(Expenses));
h=pie(gca,Expenses,MostLeastExpensive,ExpenseCategories);
Shopping
Food
Gifts
Medical
Utilities
Transport
Lodging
Incidentals
Expenses = [20 10 40 12 20 19 5 15];
MostLeastExpensive = (Expenses==max(Expenses)|Expenses==min(Expenses));
h=pie(gca,Expenses,MostLeastExpensive);
legend('Food','Medical','Lodging','Incidentals',...
'Transport','Utilities','Gifts','Shopping');
Food
Medical
Lodging
Incidentals
Transport
Utilities
11%
14%
4%
Gifts
7%
Shopping
13%
14%
28%
9%
Expenses = [20 10 40 12 20 19 5 15];
MostLeastExpensive = [0 1 0 1 0 1 0 1];%分割
h=pie(gca,Expenses,MostLeastExpensive);
legend('Food','Medical','Lodging','Incidentals',...
'Transport','Utilities','Gifts','Shopping');
Food
11%
Medical
Lodging
Incidentals
Transport
Utilities
Gifts
14%
4%
7%
Shopping
13%
14%
28%
9%
x = [20 10 40 12 20 19 5 15];
explode = [4 2 2 2 2 4 2 2];
label = {'Food','Medical','Lodging','Incidentals',...
'Transport','Utilities','Gifts','Shopping',}';
figure('color','w','renderer','openGL');
h = pie3(x,explode);
h = findobj(h,'Type','text');
set(h,{'string'},cellfun(@strcat,get(h,{'string'}),label,'un',0),'FontName','Times New
Roman','FontSize',16);
%set(h,{'string'},strcat(get(h,{'string'}),label));
%cm = [72 65 137;143 184 58;193 60 49;41 121 201;...
% 60 65 150;189 84 58;193 160 90;241 121 101]/255;
colormap(jet), shading interp
view(18,20), camproj perspective
light('Position',[1 2 3],'Style','inf')
lighting gouraud
x = [20 10 40 12 20 19 5 15];
explode = [4 2 2 2 2 4 2 2];
label = {'14% Food','7% Medical','28% Lodging','9% Incidentals',...
'14% Transport','13% Utilities','4% Gifts','11% Shopping',}';
figure('color','w','renderer','openGL');
pie3s(x,'Explode',explode,'Labels',label)%见Matlab_pie3s
剩余10页未读,继续阅读
资源评论
苦茶子12138
- 粉丝: 1w+
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功