フィルターのクリア

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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by