| Author |
Message |
firephenix405
Joined: 19 Apr 2003 Posts: 79
|
12 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
|
12 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
|
12 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
|
12 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 |
|
 |