How to reconstruct a tidal elevation time series from tidal constituents?

10 views (last 30 days)
I know the amplitude and phase of 8 tidal constituents (M2 S2 N2 K2 K1 O1 P1 Q1) at a given point.
I want to construct the elevation timeseries from these. Does anybody have any advice on how to do this?
Thank you!

Accepted Answer

Star Strider
Star Strider on 8 Jul 2019
I am not certain what you want.
Try this:
t = linspace(1, 24, 96); % Time Vector
Amp = randi(9, 5, 1); % Column Vector Of Amplitudes
Phs = rand(5, 1)*2*pi; % Column Vector Of Phases
TPhs = bsxfun(@plus, 2*pi*t/24, Phs);
Out = Amp .* sin(TPhs);
figure
plot(t, Out)
grid
Note that in this code, all vectors are originally row vectors.

More Answers (0)

Categories

Find more on Oceanography and Hydrology in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!