loop for counting numbers within specified ranges
古いコメントを表示
Hello, I am trying to create a histogram. I have a vector 2671 values and i want to count the number of values that occur within specified ranges. The code below for some reason, isn't working.
d=0
for i=length(Fine_pearl);
if (Fine_pearl(i,1)>=0.0800) && (Fine_pearl(i,1) <= 0.1)
Fine_pearl(i,1)
d=d+1;
AODF_freq(1,1)=d;
end
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!