Average data along z
Ältere Kommentare anzeigen
I have data at given xyz points (i.e. locations). For each xy pair, there are multiple z values. I'd like to average the data along the z dimension. In other words, go from 3D+Value to 2D+AveragedValueAlongZ. Is there a fast way to do this (i.e. not needing loops)? Thanks in advance.
Akzeptierte Antwort
Weitere Antworten (1)
jonas
am 5 Okt. 2018
mean(A,3)
2 Kommentare
Walter Roberson
am 5 Okt. 2018
This can be useful, but does depend upon the points being gridded, with an equal number of z points for each (x,y) pair.
jonas
am 5 Okt. 2018
Ah yes, that's how I interpret 3D to 2D, but in hindsight I agree that OP is probably looking for your solution.
Kategorien
Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!