simulation emergency vessel route enter port

can someone reply me how i can settle my problem to dojat_abs91@yahoo.com

3 Comments

my problem is in the pdf format
i have 2 data:
1. Dummy Data for position and condition of sea)
X(latitude) Y(longitude) Z(height)
10000 10010 -11
10010 10010 -13
10020 10010 -10
10030 10010 -9
10040 10010 -14
10050 10010 -17
10060 10010 -11
10070 10010 -14
10080 10010 -17
10090 10010 -8
10100 10010 -7
10000 10020 -15
10010 10020 -8
10020 10020 -9
10030 10020 -10
10040 10020 -11
10050 10020 -14
10060 10020 -8
10070 10020 -7
10080 10020 -6
10090 10020 -6
10100 10020 -8
10000 10030 -9
10010 10030 -10
10020 10030 -11
10030 10030 -14
10040 10030 -11
10050 10030 -12
10060 10030 -14
10070 10030 -9
10080 10030 -10
10090 10030 -12
10100 10030 -14
2. Tidal Data for 03/03/15
ETA(time) Tidal Height
0000 2.2
0100 2.2
0200 2.0
0300 1.6
0400 1.3
0500 1.0
0600 0.8
0700 0.7
0800 0.9
0900 1.3
1000 1.7
1100 2.0
1200 2.1
1300 2.2
1400 2.1
1500 1.8
1600 1.5
1700 1.2
1800 1.0
1900 1.0
2000 1.1
2100 1.5
2200 1.9
2300 2.2
Then, my problems are:
how i can run this coding?
%D = x(latitude),y(longitude) and z(heighting) data
D =load('database.m');
%detail input char
S = input('Name of Ship :\n' , 's')
C = input('Name of Captain :\n' , 's')
%detail input data(ddmmyy) will be load tide data
T = input ('Date (ddmmyy):\n' , 's')
%if user input 030315, the data (tide030315.m) will be load
%detail input int
V = input('Draft Vessel (m):\n' , 's')
E = input('ETA (hhmm):\n' , 's')
U = input('UKC (m):\n' , 's')
P = input(Current position (X/Y) :\n' , 's') %posituion vessel during emergency
%(user input ETA [eg: 1200, then the value 2.1 will be used in algorithm)
% how I can use if/else function from the tidal data when captain choose 1200,then value 2.1 will be use in algorithm below
%algorithm
HS(x,y,z)= T(z) - D(x,y,z);
UKC(x,y,z)= HS(x,y,z) - V(z);
%how looping function can be used with above algorithm
%condition: UKC(x,y,z)=> U
%best point(x,y) will be show from the current position of vessel which input by captain.

Sign in to comment.

Answers (1)

Assuming that your tidal data is stored in the variable "tidal" whose first column is ETA and whose second column is tide height, then to find the tide height for given time "eta", use
estimated_tide = interp1(tidal(:,1), tidal(:,2), eta);

Categories

Find more on Oceanography and Hydrology in Help Center and File Exchange

Tags

Asked:

on 7 Jun 2015

Answered:

on 9 Jun 2015

Community Treasure Hunt

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

Start Hunting!