Code covered by the BSD License  

Highlights from
Hydromat

from Hydromat by Baharuddin Ali
Plot the body plan of ship 2D-3D & hydrostatic

Gbrbdy(X,Y,ST)
function Gbrbdy(X,Y,ST)
   if(ST<=5)
     x=-X;
     plot(x,Y);hold on
  else  
     x=X;
     plot(x,Y);hold on
	end

Contact us at files@mathworks.com