Gaussian Distribution
Ältere Kommentare anzeigen
Hi All, I am trying to plot a amplitude Gaussian distribution in Matlab. I have only amplitude peak, mean and sigma (sd) values. The peak is corresponding to the mean. How to get a Gaussian normal plot using only that three values? What could be the code for that?
1 Kommentar
Adam Danz
am 14 Jul. 2020
Here's a gaussian function where you can set the mean, standard deviation, amplitude, and vertical offset.
Akzeptierte Antwort
Weitere Antworten (2)
Sivylla Paraskevopoulou
am 28 Dez. 2024
0 Stimmen
If you have access to Statistics and Machine Learning toolbox, you can also make use of the makedist function, like so:
mu = 4; % Mean/amplitude value
sigma = 2; % Sigma/sd value
normdist = makedist("normal", "mu", 4, "sigma", 2)
plot(normdist) % Automatically shows a graph of the distribution
Kategorien
Mehr zu Uniform Distribution (Continuous) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

