how to devide data into 3 catagaries
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Walter Roberson
on 7 Nov 2015
idx = YourData < 70;
lowrain = YourData(idx);
idx = 70 <= YourData & YourData < 120;
midrain = YourData(idx);
idx = 120 <= YourData;
highrain = YourData(idx);
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!