Borrar filtros
Borrar filtros

Mean returns Inf value why?

19 visualizaciones (últimos 30 días)
TAPAN PATEL
TAPAN PATEL el 19 de Jun. de 2020
Comentada: TAPAN PATEL el 19 de Jun. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by