RMSE of 1 row of a matrix?
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
dpb
on 3 Jul 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.
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!