how to depict the histogram envelop in matlab

Status
Not open for further replies.

firephenix405

Junior Member level 2
Joined
Apr 19, 2003
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
102
matlab plot enveloppe histogram

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??
 

d u mean by envelope the frequency curve?
 

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);
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…