Azzera filtri
Azzera filtri

Mean returns Inf value why?

19 visualizzazioni (ultimi 30 giorni)
TAPAN PATEL
TAPAN PATEL il 19 Giu 2020
Commentato: TAPAN PATEL il 19 Giu 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.

Risposta accettata

Rasul Khan
Rasul Khan il 19 Giu 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 Commento
TAPAN PATEL
TAPAN PATEL il 19 Giu 2020
Ahh! Thank you Rasul Khan, I didnt notice that

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by