Mean returns Inf value why?

19 次查看(过去 30 天)
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;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by