Question: Write a user-defined function that plots an ellipse with axes that are parallel to the x and y axes, given the coordinates of its center

Write a user-defined function that plots an ellipse with axes that are parallel to the x and y axes, given the coordinates of its center and the length of the axes. For the function name and arguments, use ellipseplot (xc, yc, a,b). The input arguments xc and yc are the coordinates X of the center, and a and b are half the lengths of the horizontal and vertical axes (see figure), respectively. This function has no output arguments. Use the function to plot the following ellipses:
(a) xc = 3.5, yc = 2.0, a = 8.5, b = 3
(b) xc = -5, yc = 1.5, a = 4, b = 8
yt ь! yc хс

yt ! yc

Step by Step Solution

3.52 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file figure1 xc35 yc20 a85 b3 ellipseplotxcycab figure2 xc... View full answer

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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (740).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!