Question: 2. Write a Matlab script called yourlastname 8 2.m that creates a 3D shape as described below. Using the lecture example eight color demo 1.


2. Write a Matlab script called yourlastname 8 2.m that creates a 3D shape as described below. Using the lecture example eight color demo 1. m (available on the Sakai lecture site Week 10 Lesson as a guide, set Nx 15, Ny-60, Nz-50 and replace the box commands with new box commands using the parameters given in the table below (each row in the table corresponds to a single call to box. Use the functions preview. p, model gen.p and model animate.p(also available on Sakai to view the resulting model. Be sure that these "p" files, along with the file box. p, are placed in the same folder as your script. TABLE 1. Parameters for box command, problem z 5 15 20 50 15 18 true 'w' 5 15 20 50 10 15 true k 8 12 50 55 20 24 true VW g 15 17 10 20 true 9 11 26 29 L3 L18 true 9 11 41 44 3 L 18 true true 'w' 3 4 39 46 29 36 true 'w' 2 3 44 45 34 35 true 3 4 29 41 20 22 true 'k' 3 4 26 29 22 24 L true 3 4 41 44 22 24 true 'k' 3 4 32 33 21 22 true w 3 4 37 38 21 22 true 'w' 2. Write a Matlab script called yourlastname 8 2.m that creates a 3D shape as described below. Using the lecture example eight color demo 1. m (available on the Sakai lecture site Week 10 Lesson as a guide, set Nx 15, Ny-60, Nz-50 and replace the box commands with new box commands using the parameters given in the table below (each row in the table corresponds to a single call to box. Use the functions preview. p, model gen.p and model animate.p(also available on Sakai to view the resulting model. Be sure that these "p" files, along with the file box. p, are placed in the same folder as your script. TABLE 1. Parameters for box command, problem z 5 15 20 50 15 18 true 'w' 5 15 20 50 10 15 true k 8 12 50 55 20 24 true VW g 15 17 10 20 true 9 11 26 29 L3 L18 true 9 11 41 44 3 L 18 true true 'w' 3 4 39 46 29 36 true 'w' 2 3 44 45 34 35 true 3 4 29 41 20 22 true 'k' 3 4 26 29 22 24 L true 3 4 41 44 22 24 true 'k' 3 4 32 33 21 22 true w 3 4 37 38 21 22 true 'w
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
