
Get the mean value for a row of a 2D wave

finn
with the following function I am able to get the mean value of a defined region in a column (vertical dimension):
wave1(0)=mean(2Dwave,10,1)
Can anybody tell me how to get the mean value of a defined region in a row (horizontal dimension) of a 2D wave?
cheers,
Finn
October 7, 2011 at 09:01 am - Permalink
October 7, 2011 at 10:06 am - Permalink
I prefer a slightly simpler version:
A.G.
WaveMetrics, Inc.
October 7, 2011 at 01:50 pm - Permalink
thanks very much! With your help it is working now.
cheers,
Finn
October 8, 2011 at 03:56 am - Permalink
These functions are cool because you can pass them right into a another function. So if I wanted to find the mean of values 3 to 20 in row 15 of some 2D wave, w, I can run this:
I keep loads of utility functions like these in Ipfs that load automatically with Igor at startup so they are always there for me to use.
November 3, 2011 at 11:56 pm - Permalink
Often times I want to do something like this but for all cols or rows:
if you do not want subranges it is even easier:
Just be careful - in this simple example it does not account for Nans or Infs
November 4, 2011 at 08:35 am - Permalink
November 8, 2011 at 12:16 pm - Permalink