How to reconstruct a tidal elevation time series from tidal constituents?
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Oceanography and Hydrology についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!