The geometry of a ship hull Wigley hull can be modeled by th
The geometry of a ship hull (Wigley hull) can be modeled by the equation y = MinusPlus B/2 [1 - (2x/L)^2] [1 - (2z/T)^2] where x, y, and z are the length, width, and height, respectively. Use MAT-LAB to make a 3-D figure of the hull as shown. Use B = 1.2, L = 4, T = 0.5, -2 lessthaorequalto x lessthaorequalto 2, and -0.5 lessthaorequalto z lessthaorequalto 0.
Solution
Clear all
B=1.2;
T=0.5;
L=4;
X=-2:0.1:;
Z=-0.5:0.01:0;
[X Z]= mesh grid (x,z);
Y1=-B2*(1-(2*X/L).^2).*(1-(2.*Z./T).^2);
Y2=B./2.*(1-(2.*X.L).^2).*(1-(2.*Z./T).^2);
Y=[Y1 Y2];
Surf(X,Y1,Z)
Hold on
Mesh (X,Y2,Z)
Xlabel(‘x’)
Ylabel(‘y’)
Zlabel(‘z’)
![The geometry of a ship hull (Wigley hull) can be modeled by the equation y = MinusPlus B/2 [1 - (2x/L)^2] [1 - (2z/T)^2] where x, y, and z are the length, widt The geometry of a ship hull (Wigley hull) can be modeled by the equation y = MinusPlus B/2 [1 - (2x/L)^2] [1 - (2z/T)^2] where x, y, and z are the length, widt](/WebImages/42/the-geometry-of-a-ship-hull-wigley-hull-can-be-modeled-by-th-1131548-1761604624-0.webp)