필터 지우기
필터 지우기

How do I make a histogram with the mean value and standard deviation value?

조회 수: 2 (최근 30일)
Susmita Panda
Susmita Panda 2023년 4월 22일
댓글: Susmita Panda 2023년 4월 23일
My Disp sample size is going to be a maximum limit of 800 x 1.
My mean is 2.873 and my standard deviation is 2.337.
How would I construct a histogram with just this info having x axis as disp and y as number of disp samples?
D = load("Disp.mat");
D.max_dis_loc_store
ans = 800×1
0.5050 0.5050 0.5050 0.5050 0.5050 0.5050 0.5050 0.5050 0.5050 0.5050
T = any(D.max_dis_loc_store ~= D.max_dis_loc_store(1))
T = logical
0
  댓글 수: 2
Torsten
Torsten 2023년 4월 22일
편집: Torsten 2023년 4월 23일
I guess you included a wrong file, didn't you (see above) ?
But to make a histogram, you don't need mean and standard deviation.
You can just use
histogram(disp,'Normalization','pdf')

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by