How do I truncate a normally distributed random variable?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a random variable 'y' that follows the normal distribution. For example:
x = -4:0.1:4;
y = normpdf(x);
I need to create another vector consisting of elements of 'y' truncated at a certain point, how do I do that?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Torsten
2017년 7월 11일
https://de.mathworks.com/help/stats/prob.truncatabledistribution.truncate.html
Best wishes
Torsten.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!