Problem 44314. A Simple Tide Gauge with MATLAB

Created by AMITAVA BISWAS in Community

∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿

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

61.67% Correct | 38.33% Incorrect
Last solution submitted on Mar 17, 2019

Problem Comments

Solution Comments

Recent Solvers279

Suggested Problems

More from this Author100

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!