MATLAB关于误差分析(MAE,MAPE,RMSE)的代码

mae1 = mean(abs(y1_obs - y1_pred));
mape1 = mean(abs((y1_obs - y1_pred)./y1_obs));
rmse1 = sqrt((sum((y1_obs - y1_pred).^2))./2)./t_num;

你可能感兴趣的:(MATLAB,matlab)