Question: PROBLEM #1 rite Matlab program that doing the following - Show a Menu to ask user to select one of the following curves: Cirale, Ellipse,

PROBLEM #1 rite Matlab program that doing the following - Show a Menu to ask user to select one of the following curves: Cirale, Ellipse, Hyperbola, and Parabola Acc rding to user selection, ask user to enter the needed data. Then, call a proper user defined function in order to calculate x and y vectors (using parametric equations) After getting x and y vectors, call user defined function to plot the curves using x and y rhuser defined function should b@ as the following Crecal : the circle user defined function to caleulate x and y for a given value f radius r and center point (a,b). The equation are: xatr cos(t)btr sintl , where O t S2n ElpCal the Ellipse user defined funetion to calculate x and y for a given value of the radiuses in x and y direction (a b). The equations are: xacos(t)y bsin(t) , where OS t S2n HypCal the Hyperbola user defined function to calculate x and y for a given value of a and b: Right Branch of Hyperbola yrbsinh (t) Left branch of Hyperbola ylbsinh (t) where Parcal : the Parab 1a u er function to calculate x and y for given a: xz2"o*t y:a*t.*t where -oo S t Sao say-1000000 s t s 1000000 , , CrvPlt the user defined function to plot the needed curve given x and y that calculated before In the main program, you should use a menu to allow user to choose an option, then, invoke correct function to calculate x and y Then, call the CrvPlt Eunction to plot the needed curve
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
