how to devide data into 3 catagaries
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2015-11-7
idx = YourData < 70;
lowrain = YourData(idx);
idx = 70 <= YourData & YourData < 120;
midrain = YourData(idx);
idx = 120 <= YourData;
highrain = YourData(idx);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!