how to plot a gaussian1D for probability density of the normal distribution

조회 수: 1 (최근 30일)
gaussian = (1/sqrt(2*pi*vars(k)))*exp(-(x(p)-means(k)).^2/(2*vars(k)));

채택된 답변

Birdman
Birdman 2017년 12월 2일
편집: Birdman 2017년 12월 2일
There is a built in function for it, called normpdf. You do not need to write the function by yourself.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by