Creating Vector using MATLAB

3 ビュー (過去 30 日間)
Bob Smith
Bob Smith 2019 年 9 月 25 日
回答済み: Shubham Gupta 2019 年 9 月 25 日
"Create a 3044 x 1 vector containing the mean value, for each gene,
from the Day 0 samples. In other words, this creates a 3044 x 1 vector
from a 3044 x 3 array, with each row containing the average of 3
measurements. Hint: the function mean usually operates column-by-column,
but it can be told to operate row by row. In other words, the commands
mean(X,1) and mean(X,2) will produce different results."

採用された回答

Shubham Gupta
Shubham Gupta 2019 年 9 月 25 日
Try
Out = mean(X,1); % for row wise mean

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by