descriptive statistics in one line of code

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by