Create a matrix of averages of a row of a previous matrix
Create a matrix of averages of a row of a previous matrix
(OP)
I have a 18x3 matrix. The three columns represent three separate trials.
What I am trying to do is take the mean of the first row of each column, and put that value into a new matrix, then do that for each subsequent row. So ultimately I would end up with an 18x1 matrix with each value equal to the average of the corresponding row in the previous matrix.
What I am trying to do is take the mean of the first row of each column, and put that value into a new matrix, then do that for each subsequent row. So ultimately I would end up with an 18x1 matrix with each value equal to the average of the corresponding row in the previous matrix.





RE: Create a matrix of averages of a row of a previous matrix
i := 0;17
out[i := in[i,0 + in[i,1 + in[i,2
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Create a matrix of averages of a row of a previous matrix
RE: Create a matrix of averages of a row of a previous matrix
Philip
RE: Create a matrix of averages of a row of a previous matrix