Code covered by the BSD License
Highlights from
Shark
-
J=rpy2J(rpy)
J=rpy2J(rpy); computes generalised Jacobian matrix which
-
R_eb=rpy2R_eb(rpy)
R_eb=rpy2R_eb(rpy), computes the rotation matrix of e-frame wrt b-frame,
-
[Cl,Cd,xcp]=a2clcdxc(alfa)
[Cl,Cd,xcp]=a2clcdxc(alfa) computes hydrodynamic coefficients Cl and Cd
-
[v1,v2,v3]=vehicle()
-
a2clcd(alfa)
[Cl, Cd] = a2clcd(alfa) computes hydrodynamic coefficients Cl and Cd
-
demos
DEMOS Demo list for Shark.
-
shark()
(the function shark adds the needed folders to the matlab path)
-
tc=tau_cor(veh,v,vr)
tc=tau_cor(veh,v,vr) calculates coriolis forces from
-
td=tau_damp(veh,vr,de)
td=tau_damp(veh,vr,de); calculates damping forces from
-
tr=tau_rest(veh,p)
tr=tau_rest(veh,p); calculates restoring forces from
-
xdot=vxdot(xu)
computes state derivatives as a function of state and input
-
z=vp(x,y)
-
contents.m
-
linattk.m
-
NLKSF
-
OPLOOP
-
xtrlmod
-
View all files
|
|
| File Information |
| Description |
Shark is a detailed nonlinear model of an underwater vehicle for MATLAB 5.3 and later (tested on 6.1 as well).
It has a Simulink interface but the source code consists in 10 MATLAB functions, each one being well documented in an enclosed PDF report.
It is possible to modify the functions to simulate different kind of vehicles and, in general, this tool can be seen as an effective way to map the equations of a mechanical system to a working simulation in the MATLAB and
Simulink environment, especially in those cases where the extensive use of a matrix-based formulation in the modeling makes MATLAB (rather than Simulink) the preferred coding environment.
NOTE: After downloading and unzipping the file "shark.zip", please follow the istructions in the file "contents.m".
Giampy, Dec 2001 |
| Required Products |
Simulink
|
| MATLAB release |
MATLAB 5.3.1 (R11.1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 06 Mar 2003 |
farzin radkani
|
|
|
| 30 Dec 2003 |
Dionnys Moran
|
|
|
| 15 Sep 2004 |
Kulic Ranka
|
|
|
| 29 Mar 2005 |
hugo ferreira
|
|
|
| 24 May 2005 |
Gerardo Acosta
|
|
|
| Updates |
| 12 Mar 2003 |
The figures in the PDF manual now have a better resolution. |
| 02 Jun 2003 |
Updated Signature and info.xml file. |
| 12 May 2005 |
Renamed everything lowercase |
| 12 May 2005 |
Removed extra dir info from zip file,
and corrected a small bug. |
| 07 Feb 2007 |
Changed info.xml file to avoid annoying messages within the last matlab versions. |
|
Contact us at files@mathworks.com