A Simple Tide Gauge with MATLAB - MATLAB Cody - MATLAB Central

Problem 44314. A Simple Tide Gauge with MATLAB

Difficulty:Rate

∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿

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

63.59% Correct | 36.41% Incorrect
Last Solution submitted on Jun 22, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
2

Problem Recent Solvers382

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!