Trying to find the RMSE between two (925 902) grids of elevation data points

조회 수: 2 (최근 30일)
Todd Pierce
Todd Pierce 2022년 5월 11일
답변: Avadhoot 2023년 9월 21일
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?

답변 (1개)

Avadhoot
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.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by