Question: Write a Matlab script that creates the 3 D shape defined as follows. See Design Files 2 folder in the Project folder from our Shared

Write a Matlab script that creates the 3D shape defined as follows. See Design Files 2 folder in
the Project folder from our Shared Google Drive. Extract those files and save them to the
folder where your script is saved. Use the examples in the lecture as a guide. Set
Nx=Ny=Nz=50. Use the parameters defined in the tables below and the functions cylinder_z
and segment. Use the preview, model_gen, and model_animate to display the 3D
model.
TABLE 1. Parameters for cylinder_z command
xc yc zmin zmax R true/false color
25254042.522.5 true 'm'
2525354020 true 'm'
2525354018 false 'm'
3525023 true 'c'
3033.7023 true 'c'
2033.7023 true 'c'
1525023 true 'c'
2016.3023 true 'c'
3016.3023 true 'c'
TABLE 2. Parameters for segment command
x1 x2 x3 y1 y2 y3 R true/false color
352531738.9401.2 true y
3033.73925401.2 true y
2033.731711.1401.2 true y
152533311.1401.2 true y
2016.334125401.2 true y
3016.333338.9401.2 true y
352531711.1401.2 true y
3033.733311.1401.2 true y
2033.734125401.2 true y
152533338.9401.2 true y
2016.331738.9401.2 true y
3016.33925401.2 true 'y'

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!