Adding a row to an unknown matrix - the row consists of the mean value of the columns of the unknown matrix.
5 ビュー (過去 30 日間)
古いコメントを表示
Gabriel Berkhoudt
2019 年 11 月 25 日
コメント済み: Gabriel Berkhoudt
2019 年 11 月 27 日
Add a row to the bottom of A that consists of the mean of each column of A and assign the resulting matrix to B.
I am trying to add a row into an unknown matrix - the row has to consist of the mean of the columns of the unknown matrix.
Does anyone have ideas?
Thank you,
Gabe
0 件のコメント
採用された回答
James Tursa
2019 年 11 月 25 日
Hints:
doc mean
The last row of the matrix A is A(end,:). Then ask yourself: What would be the indexing of one row beyond "end"?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!