Mean returns Inf value why?

12 views (last 30 days)
TAPAN PATEL
TAPAN PATEL on 19 Jun 2020
Commented: TAPAN PATEL on 19 Jun 2020
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.

Accepted Answer

Rasul Khan
Rasul Khan on 19 Jun 2020
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 Comment
TAPAN PATEL
TAPAN PATEL on 19 Jun 2020
Ahh! Thank you Rasul Khan, I didnt notice that

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!