I have a 2×56 matrix of values, and I need to take the weighted average of every individual row and store it in a 1×56 matrix. One row weighs 1/3 and the other row weighs 2/3. How do I go about doing this without the use of another vector?
MATLAB: Weighted average for each row in a matrix
MATLABmatrixweighted_average
Related Question
- How to take the mean of each row every third column
- Weighted Standard deviation
- Compute standard deviations for each element across several matrices
- How to get matrix weighted average
- Trouble calculating column mean from a matrix – using different indices for each row
- Problem 106. Weighted average
- How to calculate cumulative average of every n values in a matrix
- Weighted fit using fmincon
Best Answer