How to find guassian distribution

조회 수: 2 (최근 30일)
Silpa K
Silpa K 2019년 11월 6일
답변: Mahesh Taparia 2019년 11월 20일
How to find gaussian distribution of an image using mean=128 and variance=1689.2347.
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 6일
Can you elaborate more? Using imhist you can estimate the PDF

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

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2019년 11월 20일
Hi Shilpa,
It seems either you want to generate the histogram of an image or you want to generate a matrix which follows guassian distribution with mean 128 and variance 1689.2347.
You can generate histogram by using imhist command as
imhist(image)
For more information refer to documentation page of imhist in the link given below:
You can generate guassian random variable using normrnd command.
A=normrnd(128, sqrt(1689.2347),[m,n]);
For more information refer to the below link of documentation page of normrnd command:

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by