from two 1D waves to a 2D wave
I have 2 columns of data (A and B), I would like to create a matrix (M) which the first column there is A multiplied by the first value of B, the second column of B is A multiplied by the second value of B, and so on.
over multiplication, I wish it was possible to apply other functions (exponential and others)
how can you do?
thanks
Edit the contents of the for/endfor loop to do something other than multiplication.
March 17, 2015 at 11:20 am - Permalink
I have created the following procedure:
and I have complied it.
and in my "Command Window" I have typed
and the procedure creates "wOut" 2D wave.
is it correct?
March 18, 2015 at 04:29 am - Permalink
Yes.
Each column in wOut shows the result of the calculation on wPL and w_dist with a constant value from wAbs.
So the first column in wOut is
Is this giving you expected results?
The "p" is an implicit function in igor used on the right side in an assignment statement to refer to the first index (rows) of a wave on the left side of the statement. If that is a bit confusing you might look up wave indexing in the online help.
March 18, 2015 at 06:34 am - Permalink
March 18, 2015 at 07:57 am - Permalink
March 19, 2015 at 06:52 am - Permalink