Modelling tide to look for submersion tide
이전 댓글 표시
Hello, I need some help since I have just started using Matlab. I would like to build a model representing the tide in order to have a monthly submersion time. Anybody can suggest me the sinusoidal function to use please? thank you
댓글 수: 1
Wayne King
2014년 1월 27일
Can you please define what a monthly submersion time is with respect to tides?
답변 (2개)
Kelly Kearney
2014년 1월 27일
편집: Kelly Kearney
2014년 1월 27일
0 개 추천
Tides are a bit more complex than just a simple sinusoid. The t_tide toolbox can generate predicted tides at a given location, given a subset of harmonics ( http://www2.ocgy.ubc.ca/~rich/#T_Tide ). There seem to be several options on the File Exchange as well.
Image Analyst
2014년 1월 27일
Let's say your data is in a variable called tideHeight. Let's say there is a particular object (a roadway, a signpost, a rock, a turtle's nest, or whatever) that is submerged when you tide height is more than 9. Then you can find elements where it's submerged by doing this
% A logical (true/false) vector 1,0,0,1,1,1,0,0,1,0,0,1,0 or whatever.
itsSubmerged = tideHeight >= 9;
% Find actual index numbers: 1,4,5,6,9,12
submergedIndexes = find(itsSubmerged);
Then you can look at diff(itsSubmerged) to find when it just starts being submerged:
starts = find(diff(itsSubmerged));
That will help you figure out what the period should be for your sine wave model.
카테고리
도움말 센터 및 File Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!