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).
I would love to see some better solutions than my cheat!
what about tide=A(1)<10 !
Lots of ways to get the right answer for this test suite...but I think this is one of the silliest.
Back to basics 14 - Keywords
Flip the main diagonal of a matrix
Getting the absolute index from a matrix
Split a string into chunks of specified length
Find nearest prime number less than input number
Given a number N, find the smallest prime P>N
Given n, create n random numbers such that their standard deviation is also n.
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office