Hi ... I have tried to solve the following problem, but I failed. Can you help me?
Use MATLAB to generate and plot a three-dimensional grid of (6 X 8 X 10) resolution for a (8m X 6m X 5m) rectangular body.
The following is my code and it's not working..!! Help
W=8; % Width
H=6; % Hight
D=5; % Depth
i=6; % Nods number (x-direction)
j=8; % Nods number (y-direction)
k=5; % Nods number (z-direction)
x=linspace(0,W,i); % x
y=linspace(0,H,j); % y
z=linspace(0,D,k); % z