how to average a three dimensional matrix at each level?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
TRAILOKYA
el 7 de Mayo de 2014
Respondida: Azzi Abdelmalek
el 7 de Mayo de 2014
Sir, I have a matrix of dimension (40*40*16)which are for latitude, longitude and altitude. I need to average over latitude and longitude for each altitude so that i can get the resultant matrix of dimension (1*16). Please help me.
thanks
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 7 de Mayo de 2014
a=rand(40,40,16) % Example
out=squeeze(mean(mean(a)))
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!