Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

gaussian plot on my histogram

조회 수: 1 (최근 30일)
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020년 9월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi everyone,
I have the distogram of my data which is the 368x315x3 uint8 array.
I want to plot the gaussian with the standard deviation on it.
Can anyone help me with that please?
figure('Name','A3{1}.BMd_Img_o_part1')
edges= linspace(0,255,21);
histogram(image1, 'BinEdges',edges,'normalization','pdf')

답변 (1개)

the cyclist
the cyclist 2020년 9월 8일
If you have the Statistics and Machine Learning Toolbox, you can use the histfit function to do the histogram and gaussian fit all in one command.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by