필터 지우기
필터 지우기

plot probability density function

조회 수: 1 (최근 30일)
Hisham
Hisham 2012년 10월 17일
Hi all, I've tried to plot probability density for a give diagram but I could not reach the same figure as in the book.
I attached a picture for the question.
Here is the data on X-axis
0-5000
5000-10000
10000-15000
15000-20000
20000-25000
25000-30000
30000-35000
35000-40000
40000-45000
45000-50000
50000-55000
55000-60000
The corresponding data on Y-axis:
8
9
8
13
8
5
1
3
2
1
1
1
  댓글 수: 1
Wayne King
Wayne King 2012년 10월 17일
Please show the code that you have tried.

댓글을 달려면 로그인하십시오.

채택된 답변

venkat vasu
venkat vasu 2012년 10월 17일
Hi...
This code surely will help you.
a=5000:5000:60000;
b=[8 9 8 13 8 5 1 3 2 1 1 1]
bar(a,b);
or
stem(a,b);
  댓글 수: 3
venkat vasu
venkat vasu 2012년 10월 17일
Hi... check this for second plot
a=5000:5000:60000;
b=[8 9 8 13 8 5 1 3 2 1 1 1]
scatter(a,b); hold on
plot(a,b,'m');
Hisham
Hisham 2012년 10월 17일
Actually is not similar to the curve as in the attached picture. I think the curve is plotted by using the probability density function, but I don't know how can I use it?

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Hisham
Hisham 2012년 10월 17일
any help please?

Hisham
Hisham 2012년 10월 17일
Up....

Qura
Qura 2013년 4월 1일
How can calculate propability density function of image without using imhist command or own code

제품

Community Treasure Hunt

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

Start Hunting!

Translated by