How to reconstruct a tidal elevation time series from tidal constituents?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Emma Whettall
am 8 Jul. 2019
Beantwortet: Star Strider
am 8 Jul. 2019
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!
0 Kommentare
Akzeptierte Antwort
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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Oceanography and Hydrology finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!