필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Generating curve plots for frequency

조회 수: 2 (최근 30일)
Igor de Britto
Igor de Britto 2012년 4월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi there,
I have a function for generating random numbers inside a given interval. It's purpose is to control the frequency of values according to it's value, as per the code:
lambda = [0.3 0.7 1 1.5 1.8 2];
for a = 1:length(lambda)
A = 1 - exp(-lambda(a));
MIS{a} = -log(1 - A * rand(1,1000))/lambda(a);
end
l = ceil(length(lambda)^0.5);
for a = 1:length(lambda)
subplot(l,l,a), hist(MIS{a})
end
I would like to create a curve that would "fit" the histogram bars, but have absolutely no idea on how to proceed. Any ideas or indications?
Cheers

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by