bpresult.m
来自「线性神经网络」· M 代码 · 共 24 行
M
24 行
function BPresult(Y)
figure(...
'Name','齿轮箱故障诊断结果图',...
'NumberTitle','off', ...
'menubar','none',...
'Units','normalized');
whitebg('w');
x=1:5;
plot(x,Y(:,1),'r*');
hold on;
plot(x,Y(:,2),'g^');
hold on;
plot(x,Y(:,3),'bo');
hold on;
legend('第一个样本','第二个样本','第三个样本',-1);
set(legend,'fontsize',9);
set(legend,'Color',[0.5 0.5 0.7]);
grid on;
hold on;
xlabel('无故障(Y2=1) 齿根裂纹(Y3=1) 断齿(Y4=1)');
ylabel('输出模式值');
hold off;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?