question about predict/pe function

1 vue (au cours des 30 derniers jours)
zhiduoshao
zhiduoshao le 13 Déc 2016
I have some question about Matlab predict/pe function.The sys below in the code is a transfer function model estimated by tfest using data. When I iteratively calculate the RMSE(root mean squared error) for different k-step ahead, the RMSE for different K keeps unchanged.They all equal to the same value,which made my crazy!
#code
for K = 1:20;
err = pe(sys,data,K);
error = err.OutputData;
rmse(K) = sqrt(mean(error.^2))*100; end

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by