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

5 ビュー (過去 30 日間)
Emma Whettall
Emma Whettall 2019 年 7 月 8 日
回答済み: Star Strider 2019 年 7 月 8 日
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!

採用された回答

Star Strider
Star Strider 2019 年 7 月 8 日
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 件)

カテゴリ

Help Center および File ExchangeOceanography and Hydrology についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by