필터 지우기
필터 지우기

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 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