RMSE of 1 row of a matrix?

1 visualización (últimos 30 días)
fadams18
fadams18 el 3 de Jul. de 2021
Respondida: dpb el 3 de Jul. de 2021
Hello Matlabers,
I have this code i used to find the RMSE
sensor=3 ;
RMSE = zeros(sensor,30);
RMSE(:,i) = vecnorm(F(:,1:sensor)- F_theo(:,1:sensor),2,2)/sqrt(sensor);
However this returns a 3 x 30 matrix at the end of 30 iterations. Is there a way to just obtain the RMSE of the first row and last value? i.e.
RMSE(1,end)
but i want to calculate it directely. without having to obtain my 3x30 matrix and then extracting it.

Respuestas (1)

dpb
dpb el 3 de Jul. de 2021
Guessing without a clear definition of what things are and what, exactly it is that is wanted...
RMSE=norm(F(1,1:sensor)- F_theo(1,1:sensor),2,2)/sqrt(sensor);
but, as noted, that's purely guesswork.
We need a much more complete description of what you have and what, specifically, you're trying to calculate here.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by