Multiply matrix columns by values
astrotool
I want to get just dN, so I made a copy of the matrix and called it dN, then made a wave that has the dlog(dp) values in it
I want to multiply each column of the matrix by their corresponding dlog(dp) values
so far I have been trying this:
dN[p][0]=dN[p][0]*dlogdp[0]
.
.
.
dN[p][49]=dN[p][49]*dlogdp[49]
but this method does not work, and usually only changes the first value in the matrix column
Is there any way to get this to work?
dN *= dlogdp[q]
June 26, 2008 at 02:28 pm - Permalink
June 26, 2008 at 02:57 pm - Permalink