フィルターのクリア

Mean returns Inf value why?

19 ビュー (過去 30 日間)
TAPAN PATEL
TAPAN PATEL 2020 年 6 月 19 日
コメント済み: TAPAN PATEL 2020 年 6 月 19 日
hello all,
I am doing mean raw wise by using :
M = mean(Mag1_Normal_Aligned_full,2);
I have attached 'Mag1_Normal_Aligned_full.mat' file, I do not understand why matlab returns Inf value using mean command.

採用された回答

Rasul Khan
Rasul Khan 2020 年 6 月 19 日
It's because there is atleast one Inf value in each row. You can check with this script
for i = 1 : 101
if any(isinf(Mag1_Normal_Aligned_full(i , :)))
disp(i);
end;
end;
  1 件のコメント
TAPAN PATEL
TAPAN PATEL 2020 年 6 月 19 日
Ahh! Thank you Rasul Khan, I didnt notice that

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by