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.
Make a checkerboard matrix
Find the two most distant points
Find the two-word state names
Fill a zeros matrix
Inner product of two vectors
Given n, create n random numbers such that their standard deviation is also n.
swap sign sum & multiply castles
Vectorizing, too easy or too hard?
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