function createfigure(y1, y2)
%CREATEFIGURE(Y1,Y2)
% Y1: bar y
% Y2: bar y
% Auto-generated by MATLAB on 11-May-2019 15:44:11
%% Create figure
figure1 = figure('PaperPosition',[0.6345 6.345 20.3 15.23],'PaperSize',[20.98 29.68]);
%% Create axes
axes1 = axes(...
'FontName','Times New Roman',...
'FontSize',12,...
'FontWeight','light',...
'OuterPosition',[0 0 0.4823 1],...
'XTick',[1 2 3],...
'XTickLabel',{'基金','师资力量','评价体系'},...
'YGrid','on',...
'Parent',figure1);
axis(axes1,[0 4 0 0.75]);
title(axes1,'指标权重可视化');
xlabel(axes1,'指标名称');
ylabel(axes1,'权重');
hold(axes1,'all');
%% Create bar
bar1 = bar(y1,...
'Parent',axes1,...
'BarWidth',0.4,...
'FaceColor',[0 0.498 0]);
%% Create text
text1 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[0.7623 0.6875 17.32],...
'String','0.667',...
'Parent',axes1);
%% Create text
text2 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[1.783 0.6964 17.32],...
'String','0.675',...
'Parent',axes1);
%% Create text
text3 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[2.805 0.7146 17.32],...
'String','0.692',...
'Parent',axes1);
%% Create axes
axes2 = axes(...
'FontName','Times New Roman',...
'FontSize',12,...
'FontWeight','light',...
'OuterPosition',[0.4823 0 0.5177 1],...
'XTick',[1 2 3],...
'XTickLabel',{'评价体系','师资力量','基金'},...
'YGrid','on',...
'Parent',figure1);
axis(axes2,[0 4 0 0.75]);
title(axes2,'指标权重可视化(降序排列)');
xlabel(axes2,'指标名称');
ylabel(axes2,'权重');
hold(axes2,'all');
%% Create bar
bar2 = bar(y2,...
'Parent',axes2,...
'BarWidth',0.4,...
'FaceColor',[0 0.498 0]);
%% Create text
text4 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[0.7885 0.7146 17.32],...
'String','0.692',...
'Parent',axes2);
%% Create text
text5 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[1.763 0.6944 17.32],...
'String','0.675',...
'Parent',axes2);
%% Create text
text6 = text(...
'Color',[1 0 0],...
'FontName','Times New Roman',...
'Position',[2.801 0.6843 17.32],...
'String','0.667',...
'Parent',axes2);
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
matlab灰色关联分析及其实施例子.rar (3个子文件)
权重matlab代码.txt 2KB
灰色关联matlab.txt 532B
关联度matlab代码.txt 2KB
共 3 条
- 1
资源评论
小孟的CDN
- 粉丝: 683
- 资源: 70
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功