フィルターのクリア

descriptive statistics in one line of code

1 回表示 (過去 30 日間)
Arturo Jr. Ongkeko
Arturo Jr. Ongkeko 2020 年 12 月 12 日
回答済み: KSSV 2020 年 12 月 12 日
Hi,
Is there a way to write these in one line of code?
mu_age=mean(age)
mn_age=min(age)
mx_age=max(age)
sigma_age=std(age)

採用された回答

KSSV
KSSV 2020 年 12 月 12 日
A = rand(1,10) ;
v = [min(A), max(A), mean(A), std(A)] ;
v(1) % min
v(2) % max
v(3) % mean
v(4) % std

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics and Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by