wave multiply problem
Dahair
I have four waves (name them A, B, C and D), each of these waves contains a 2*10 matrix. What I want to do is quite simple. I want to do the multiplication of A11*B11*C11*D11 and put the result in a new wave, called E. So just E11=A11*B11*C11*D11, E12=A12*B12*C12*D12, E13=A13*B13*C13*D13... And in the end save this new wave E.
I tried multiply them directly and for sentence but both failed and I'm confused...Does anyone know something on this?
Make/O/N=(2,2) matB = p+1 + 10*(q+1)
Make/O/N=(2,2) matC = p+2 + 10*(q+2)
Make/O/N=(2,2) matD = p+3 + 10*(q+3)
Edit matA, matB, matC, matD
Duplicate/O matA, matE
matE = matA * matB * matC * matD
AppendToTable matE
For details execute:
DisplayHelpTopic "Waveform Arithmetic and Assignment"
DisplayHelpTopic "Multidimensional Wave Assignment"
You can also do this using MatrixOp, an Igor operation that does a bunch of different things mostly on 2D waves:
AppendToTable matE2
October 30, 2013 at 07:22 pm - Permalink