How can I loop through a csv file that holds annual precipitation data and find out how many dry events there are?
Show older comments
I have a csv file with 365 days of precipitation data. I am interested in finding out the average time between rainy days. For example, here's an shortened example of the matrix: [0 0 .3 0 0 .5 .6 0 0 0] I want to count the the first occurrences of zeroes in the matrix. So this matrix would give me an answer of 3. Any help would be appreciated.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB 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!