histogram manipulating data help
显示 更早的评论
Hi. I am trying to manipulate histogram data. Firstly I create a histogram and want to replace say the first 20 bins with a value of zero
%Histogram
maxval=max(IM(:));
[counts,x] = imhist(IM,maxval+1);
bar(x,counts,'b','EdgeColor','b');
%Replace first 20 bins with zero
p=20;
for i=1:p
counts(p)=0;
end
for some reason this is only deleting the bin with p=0 ??
Next I want to supress higher bins, that is remove both x and counts from the histogram data so I can output it to excel, so say i want to delete bins totally from 20,000 to 65536. Not sure how to do this.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!