フィルターのクリア

Editing and grouping arrays

3 ビュー (過去 30 日間)
deji
deji 2012 年 7 月 22 日
Hi,
I am working with an array of about 300,000 numbers which start from 0 to 37.668. I want to group the numbers in a way that i will have 38 groups and will be 0-1; 1 -2; 2-3, 3-4, up to 37-38 and also get the number of values in each group. Please how will i do it
Thanks in advance

採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 22 日
counts = histc(YourArray, 0:38);
  1 件のコメント
deji
deji 2012 年 7 月 27 日
what if its for numbers between 0 and 0.0048 and i want to group like numbers together and get the value for each group.
Thanks in advance

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by