I have several thousand datapoints that follow a normal distribution (not zero centered and values ranging roughly from -500 to 500).
How can I get the interval from mean-1-sigma to mean+1-sigma?

 채택된 답변

Chunru
Chunru 2022년 7월 21일

0 개 추천

x = 500*randn(10000, 1) + 200; % some data
mx = mean(x);
sx = std(x);
plot(x, 'o'); hold on; grid on;
yline(mx+[-1 0 1]*sx, 'r');

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

질문:

2022년 7월 21일

답변:

2022년 7월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by