Rules | Recent posts | topic RSS | Search | Register  | Log in

how to depict the histogram envelop in matlab

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Mathematics & Physics
Author Message
firephenix405



Joined: 19 Apr 2003
Posts: 79


Post12 Oct 2004 0:45   how to depict the histogram envelop in matlab

I generate a sequence of random variable in Matlab, and sketch its histogram using function hist(), but now I want to sketch its histogram envelop, not only histogram,

how should I do??
Back to top
amraldo



Joined: 29 Aug 2004
Posts: 248
Helped: 22
Location: egypt, cairo


Post12 Oct 2004 1:23   Re: how to depict the histogram envelop in matlab

d u mean by envelope the frequency curve?
Back to top
firephenix405



Joined: 19 Apr 2003
Posts: 79


Post12 Oct 2004 3:16   how to depict the histogram envelop in matlab

right, contour curve
Back to top
amraldo



Joined: 29 Aug 2004
Posts: 248
Helped: 22
Location: egypt, cairo


Post12 Oct 2004 13:49   Re: how to depict the histogram envelop in matlab

u can use the histc as follows
[N,C]=histc(A,n);
%N is an array of histogram amplitudes
%C is an array of corresponding centers
%A is the array of input data
%n is the number of segments of the histogram
%i.e. n =length(N) or length(C)
plot(C,N);
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Mathematics & Physics
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap