早教吧 育儿知识 作业答案 考试题库 百科 知识分享

求这段matlab代码的输出结果N=1000X=rand(N,1);Xmean=sum(X)/N;Sigma1=sqrt(sum((X-Xmean).^2)/(N+1))Sigma2=sqrt(sum(X.^2-N*Xmean^2)/(N+1))

题目详情
求这段matlab代码的输出结果
N=1000
X=rand(N,1);
Xmean=sum(X)/N;
Sigma1=sqrt(sum((X-Xmean).^2)/(N+1))
Sigma2=sqrt(sum(X.^2-N*Xmean^2)/(N+1))
▼优质解答
答案和解析
Sigma1 =
0.2913
Sigma2 =
0 +16.1714i