Finding mean for multiple matrices

I have three different one dimentional matrices. How do I find the mean values of them.
For Example
A=[4,5,6];
B=[2,3,6];
C=[5,4,2];
I nead mean of (A,B,& C)
Please Help.

 Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 22 de Oct. de 2019
Editada: KALYAN ACHARJYA el 22 de Oct. de 2019
Please do read here
result1=mean(A);
So on..

5 comentarios

HABILA
HABILA el 22 de Oct. de 2019
I need mean for all A,B and C altogether not individually.
KALYAN ACHARJYA
KALYAN ACHARJYA el 22 de Oct. de 2019
Editada: KALYAN ACHARJYA el 22 de Oct. de 2019
A=[4,5,6];
B=[2,3,6];
C=[5,4,2];
data=[A,B,C]
result=mean(data)
or
A=[4,5,6];
B=[2,3,6];
C=[5,4,2];
data=[A;B;C]
result=mean(data(:))
HABILA
HABILA el 22 de Oct. de 2019
A=[4,5,6];
B=[2,3,6];
C=[5,4,2];
I need mean values [3.6667 4.000 4.6667].
But the above code is giving mean of 'data' i.e. 4.111 value
A=[4,5,6];
B=[2,3,6];
C=[5,4,2];
data=[A;B;C]
result=mean(data)
HABILA
HABILA el 22 de Oct. de 2019
Thank You so much. This one worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

el 22 de Oct. de 2019

Comentada:

el 22 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by