To apply Gaussian in histogram?

1 Ansicht (letzte 30 Tage)
Jhay
Jhay am 1 Dez. 2011
Is there any function already defined in Matlab to apply gaussian to the histogram???

Akzeptierte Antwort

Junaid
Junaid am 1 Dez. 2011
Dear I guess you have histogram and you want to apply gaussian weight to it. If it is so then let say you have Histogram H. then you can apply with Gaussian weight like this.
H.*fspecial('gaussian', size(H),1.2)
you can tune 1.2 as you like.

Weitere Antworten (1)

Honglei Chen
Honglei Chen am 1 Dez. 2011
If you want to generate random number whose histogram is Gaussian shaped, check randn. Otherwise, could you clarify what you mean by applying Gaussian to the histogram?

Community Treasure Hunt

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

Start Hunting!

Translated by