-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlotVisual.m
More file actions
24 lines (21 loc) · 717 Bytes
/
Copy pathPlotVisual.m
File metadata and controls
24 lines (21 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function PlotVisual(targets,outputs,Name)
errors=targets-outputs;
MSE=mean(errors(:).^2);
RMSE=sqrt(mean(errors(:).^2));
error_mean=mean(errors(:));
error_std=std(errors(:));
plot(targets,'-.',...
'LineWidth',1,...
'MarkerSize',10,...
'Color',[0.0,0.9,0.0]);
hold on;
plot(outputs,':',...
'LineWidth',2,...
'MarkerSize',10,...
'Color',[0.4,0.2,0.9]);
legend('Target','Output');
title(Name);
grid on;
title([' MSE= ' num2str(MSE),' RMSE= ' num2str(RMSE),' Error Mean = ' num2str(error_mean) ' Error STD = ' num2str(error_std)],...
'FontSize',12,'FontWeight','bold','Color',[0.9,0.4,0.3]);
end