How to calculate difference between a vector

1 回表示 (過去 30 日間)
scientist121
scientist121 2021 年 11 月 12 日
編集済み: scientist121 2021 年 11 月 12 日
I have a housekeeping gene [2 4 6 8 10]
How do i work out the difference between each measurement of the housekeeping gene and the mean of housekeeping gene?

採用された回答

Dave B
Dave B 2021 年 11 月 12 日
I think you're asking how to take the values [4 8 6 104 5] and subtract the mean?
a = [4 8 6 104 5];
b = a-mean(a)
b = 1×5
-21.4000 -17.4000 -19.4000 78.6000 -20.4000
  1 件のコメント
scientist121
scientist121 2021 年 11 月 12 日
Thanks Dave :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by