finding mean in row wise
Mostrar comentarios más antiguos
I have values as
D=rand(3,7)
D =
0.5407 0.3181 0.6456 0.5447 0.7210 0.2187 0.0636
0.8699 0.1192 0.4795 0.6473 0.5225 0.1058 0.4046
0.2648 0.9398 0.6393 0.5439 0.9937 0.1097 0.4484
i want to find mean of 3column,next 2 ,next 2
for example
3columns
0.5407 0.3181 0.6456
0.8699 0.1192 0.4795
0.2648 0.9398 0.6393
now want to find mean in row wise ,so i will get
mean1 mean2 mean3
same way i have to do for others also
please help
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 19 de Nov. de 2012
mean(D(:,1:3),2)
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!