Trying to find the RMSE between two (925 902) grids of elevation data points
3 次查看(过去 30 天)
显示 更早的评论
Trying to find the root mean square error values for the differences between two grids, matrix A is the original 925x902 matrix and matrix B is the simulated one.
I also would like to display the results of the RMSE over the top of the original matrix A grid.
How would i go about this?
0 个评论
回答(1 个)
Avadhoot
2023-9-21
Hi Todd,
You can find the RMSE between two matrices either row-wise or column wise. I assume that you need the column wise RMSE values. You could do that by using the following command:
rmseCol = rmse(A,B)
You could also find the row wise RMSE values by using:
rmseRow = rmse(A,B,2)
After that you could append the original matrix A after the RMSECol vector to get the desired effect of getting the RMSE values above the original matrix A. You can do it as follows:
RMSE_A = [rmseCol ; A]
You can find more information about the rmse function and its uses here: Root-mean-square error between arrays - MATLAB rmse - MathWorks India
Hope this helps.
Regards,
Avadhoot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!