da_plt1.m
来自「wang xiao ping 版遗传算法」· M 代码 · 共 42 行
M
42 行
function [out]=da_plt1(y,yest,xt,yt,t);
%
% General model result graph printing routine.
%
% [out]=da_plt1(y,yest,xt,yt,t,l1,l2);
%
% out = nul result
%
% y = actual value of output
% yest = estimated output
% xt = x title
% yt = y title
% t = graph title
%
% The following legends are automatically added:
%
% y: Actual
% yest: PRedicted
%
% The routine sends the graph either to the clipboard
% or to the currently selected windows printer.
%
%
% Bring up a new window
%
win=figure;
%
% Plot the lines
%
hold on;
plot(y,'b');
plot(yest,'g');
xlabel(xt);
ylabel(yt);
title(t);
legend('Actual','Predicted');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?