how to calculate and plot rmse matrix
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,im a beginner in matlab. I need to plot for a rmse matrix. i need to calculate the rmse and reshape it into a heatmap (a 8x5 matrix). How do I calculate the rmse of 40 models and one observation? i have listed out my models in the code, and am retrieving it from 'odat' for observation and 'gdat' for the 40 models. i've looked through all the rmse commands but i couldn't really understand, so need some help on it.
4 件のコメント
採用された回答
KSSV
2022 年 10 月 2 日
編集済み: KSSV
2022 年 10 月 2 日
Let O be your observation data array of size mX1 and M be your model data array of size mx40.
O = rand(30,1) ;
M = rand(30,40) ;
RMSE = sqrt(mean((O - M).^2));
RMSE = reshape(RMSE,8,5) ;
pcolor(RMSE)
colorbar
You arrange all your models into an array and get them to the same dimensions of Observations.
3 件のコメント
KSSV
2022 年 10 月 2 日
Just to show an example I have taken 30....it depends on your data. Hope you problem is solved?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!