how to devide data into 3 catagaries

hi...i want to devide the rainfall data into 3 catagaries, the first one is <70 and the second one is 70 to 120 and 3 rd one is >=120

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 7 日

0 投票

idx = YourData < 70;
lowrain = YourData(idx);
idx = 70 <= YourData & YourData < 120;
midrain = YourData(idx);
idx = 120 <= YourData;
highrain = YourData(idx);

1 件のコメント

skyhunt
skyhunt 2015 年 11 月 8 日
編集済み: skyhunt 2015 年 11 月 8 日
thanking you reply...in high rain catagiry the years are also adding finally..what i do?

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

カテゴリ

ヘルプ センター および File ExchangeMathematics and Optimization についてさらに検索

質問済み:

2015 年 11 月 7 日

編集済み:

2015 年 11 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by