Amr*_*mro 16
这是一个例子:
x = randn(100,1)*3; %# some random data
e = [-10 -5 -3 -1 1 2 3 20]; %# edges of intervals: e(i) <= x < end(i+1)
c = histc(x,e); %# get count in each interval
bar(e, c, 'histc') %# bar plot
set(gca, 'xlim',[e(1) e(end)])
Run Code Online (Sandbox Code Playgroud)

| 归档时间: |
|
| 查看次数: |
12470 次 |
| 最近记录: |