I don't know why 'mean' function couldn't run with 'double'

6 visualizaciones (últimos 30 días)
Jiyeon Kim
Jiyeon Kim el 21 de Dic. de 2018
Comentada: madhan ravi el 21 de Dic. de 2018
I want to use 'mean' function in a code, but it results the error:Undefined function 'mean' for input arguments of type 'double'.
So I checked the funtion with the example on matlab website (https://www.mathworks.com/help/matlab/ref/mean.html)
>> A = [0 1 1; 2 3 2; 1 3 2; 4 2 2]
A =
0 1 1
2 3 2
1 3 2
4 2 2
>> a=mean(A)
Undefined function 'mean' for input arguments of type 'double'.
It shows the same error message, even I use the example on Matlab website.
I don't know what's wrong with it..

Respuesta aceptada

madhan ravi
madhan ravi el 21 de Dic. de 2018
Editada: madhan ravi el 21 de Dic. de 2018
Maybe the case that you have a file named mean.m if so change it's name or delete it .
which mean -all % what shows up?
  7 comentarios
Jiyeon Kim
Jiyeon Kim el 21 de Dic. de 2018
Okay Thank you so much :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing 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