Question: Write a Matlab script called yourlastname _ 9 _ 2 . m that creates a 3 D shape as described below. Using the lecture example

Write a Matlab script called yourlastname_9_2.m that creates a 3D shape as described below. Using the lecture example eigh'_color_demo_1.m (available in our Google Shared Drive space) as a guide, set Nx=15,Ny?b=ar(6)0,Nz=5bar(0) 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 in our Shared Drive space) 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 2
\table[[xmin,xmax,ymin,ymax,zmin,zmax,D,C],[5,15,20,50,18,40,true,'y'],[5,15,20,50,15,18,true,'w'],[5,15,20,50,10,15,true,'k'],[8,12,15,20,20,24,true,'w'],[8,12,50,55,20,24,true,'w'],[9,11,15,17,10,20,true,'y'],[9,11,53,55,10,20,true,'y'],[9,11,26,29,3,18,true,'y'],[9,11,41,44,3,18,true,'y'],[1,15,25,30,1,3,true,'k'],[1,15,40,45,1,3,true,'k'],[3,4,34,36,8,18,true,'r'],[3,4,24,31,29,36,true,'w'],[3,4,39,46,29,36,true,'w'],[2,3,29,30,34,35,true,'k'],[2,3,44,45,34,35,true,'k'],[1,5,34,36,24,27,true,'y'],[3,4,29,41,20,22,true,'k'],[3,4,26,29,22,24,true,'k'],[3,4,41,44,22,24,true,'k'],[3,4,32,33,21,22,true,'w'],[3,4,37,38,21,22,true,'w']]
Write a Matlab script called yourlastname _ 9 _ 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!