Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use matlab Do a 3D surface function. You can make a sphere, cylinder, cone - or a sheet. You may not call sphere/cylinder for this

Use matlab

image text in transcribed

image text in transcribed

Do a 3D surface function. You can make a sphere, cylinder, cone - or a sheet. You may not call sphere/cylinder for this problem. Extra credit: Do a super quadric instead: https://en wikipedia.org/wiki/Superquadr Deliverables: 6. 7. Function to map st to xv.z (in a function file) Script to create grid of points, call surface, and plot surface Picture of your surface Step by Step Instructions: .Create a function ile that takes in yvand returns X,Y,Z o Sphere/cylinder/cone: Use the equation (google it) o Sheet: I did the equation below; but you can make up your own " Z- 1/luy3) . Use mesharid to create your UV2D array of uv values o Sphere/cylinder/cone: usually has one of y,v.going from -pi to pi, the other going from -pi/2 to pi/2 (or sometimes 0 to pi). Make sure the grid is the right-way round If you get half a sphere or a double sphere you may need to swap u and v o Sheet: I did -1 to 1 for u, -2 to 2 for v Call your function with your U and V 2D arrays Plot using surf Extra credit: . . o This would be a really good time to use a struct to carry around the parameters for your superuadric You will need two auxiliary functions, f and g, in addition to the main function o You will need the function sign(x) to write fand g - o IfA B-C-and r s 2 then you get a sphere. See comment above about u and v in mesharidabove if you are, eg, getting half a surface Title your plot with your ABC and rst values o Self-check: sphere or sheet

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

Create websites and blogs

Answered: 1 week ago

Question

0 00 o o 00 glucosel

Answered: 1 week ago