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

10 Ansichten (letzte 30 Tage)
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!

Akzeptierte Antwort

Star Strider
Star Strider am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Oceanography and Hydrology finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by