Problem 44314. A Simple Tide Gauge with MATLAB
∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿
You are standing in a few inches of sea water on a beach.
You are wondering whether the high tide is coming soon or it has just passed.
Therefore, you will write a code in MATLAB to analyze following data.
You followed the sequence of water lines left by several swash of waves.
The data array A contains the distances the water traveled past your feet during each upward swash of waves.
Your code will return 1 if the high tide is coming soon.
Your code will return 0 if the high tide has just passed.
Solution Stats
Problem Comments
-
2 Comments
Is there a reference, that I can use, for predicting high/low tide from the water line height? I don't want to construct a solution based on the test suite data.
We can use derivatives for predicting the high tide (diff) when we can assume that a function is increasing or decreasing (even with some noise).
Solution Comments
Show commentsGroup

Project Euler IV
- 11 Problems
- 16 Finishers
- Bouncy numbers
- Generalised Hamming Number
- Project Euler 249: Prime Subset Sums
- Pseudo Square Root (Inspired by Project Euler 266)
- Golomb's self-describing sequence (based on Euler 341)
- Pandigital Factors (Based on Euler 491)
- Pandigital Multiples of 11 (based on Project Euler 491)
- It's going down. We're finding simbers!
- Odd elimination
- Decimation
- Day counter function
Problem Recent Solvers379
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!