Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(sorry, I know that I am only supposed to submit one question. but i couldn't find a way to break it up) Using MatLab: 5.

(sorry, I know that I am only supposed to submit one question. but i couldn't find a way to break it up)

Using MatLab:

5. Follow the following instruction to plot.

a) Create a meshgrid using x values with range(0 to 2pi,with an interval 0.05pi) and y values with the range(0 to 1, with an interval 0.05). (hint: [xx yy]=meshgrid(x,y))

b) Define the following variables: c=[0.1 + 0.9 * (pi - abs(xx-pi))/(pi)] .*yy

a = c.* cos(xx)

b = c.* sin * (xx)

z = (-2) * a.^3 + (3/2) * c.^2 + 0.5

c) Plot z against a and b using the surf() function with interpolated colors.

(Hint: in the end, add view(-30,50) will give you a better view to see the drawing)

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions