Question: Problem 1: Please solve using matlab script Make a surface of revolution and plot/draw it Deliverables: 1. Script that does the surface creation and plotting

Problem 1: Please solve using matlab script

Make a surface of revolution and plot/draw it

Deliverables:

1. Script that does the surface creation and plotting

2. Figure showing the profile curve and the surface

Step by Step Instructions:

1. Create a function for the profile curve. If you dont want to the surface to pinch in the middle then make sure your function is always positive.

a) The t values can be anything (zero to one, -1 to 1, 0 to 2 pi, etc)

b) Plot the function

..... You can create values and plot, or use fplot whatever you want

2. Now create the surface of revolution

a) [X,Y,Z] = cylinder( ys )

.....ys has to be an array of values, not a function

..........i.e., if you made an anonymous function, evaluate it to get an array

.....ys = YourFunction( t values )

.....Make sure you use the same t value range you used in the profile curve picture

b) Plot using surf(). Set the color and the camera and the light.

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 Databases Questions!