Azzera filtri
Azzera filtri

RMSE of 1 row of a matrix?

1 visualizzazione (ultimi 30 giorni)
fadams18
fadams18 il 3 Lug 2021
Risposto: dpb il 3 Lug 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.

Risposte (1)

dpb
dpb il 3 Lug 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.

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by