CALCULATING THE MEAN OF HOZIRONTAL LINES IN A MATRIX VIA MATLAB

1 次查看(过去 30 天)
Hello,
I have a question about a code. I have created via some commands a table (double matrix) with 20 lines and 50 columns. I would like to use the command mean in order to calculate the mean of all the values of each line one by one. I mean finally I would like to have 20 values. I think i should use a loop , but i am not sure. Could anyone help me?

采纳的回答

Andrei Bobrov
Andrei Bobrov 2019-11-29
out = mean(A,2) % here A - your array 20 x 50

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by