clc
clear
close all
for i=1:5
y1(i)=3i+6*3i+i;
y2(i)=3i;
end
i=1:5;
h1=plot(i,y1,’-’)
h1.LineWidth=5;
hold on
h2=plot(i,y2,’*-’)
h2.LineWidth=5;
h2.MarkerSize =8%线的标记样式大小
ax=h2.Parent;%坐标系句柄
% ax.Title.String=‘所需参数对比图’%坐标系标识
ax.XLabel.String = ‘The number of attributes’;
ax.YLabel.String = ‘The number of parameters’;
legend(ax,{‘The original BRB’,‘The basic BRB’});
MATLAB画图属性设置
最新推荐文章于 2023-07-23 21:25:17 发布