RMSE of 1 row of a matrix?

조회 수: 1 (최근 30일)
fadams18
fadams18 2021년 7월 3일
답변: dpb 2021년 7월 3일
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.

답변 (1개)

dpb
dpb 2021년 7월 3일
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.

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by