Produce a vector B which contain the average of each column of matrix A

5 次查看(过去 30 天)
i have a matrix A has a random number of row 1 and 5 and random number of column between 1 and 10. how can i create a vector B which contain the average of each column of matrix A?

回答(1 个)

Star Strider
Star Strider 2021-8-15
Use the mean function.

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by