Question

I need help doing this in MatLab please!

The parametric equation for an ellipse centered at (h, k), whose major and minor axes are parallel to the x and y axes, is xthat will plot the entire ellipse, given the inputs h, k, a and b. Use the function to obtain the plot for the case h=-2, k=4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

%in matlab

function plotEllipse(h,k,a,b)
t=0:.01:2*pi;
x=h+a*cos(t);
y=k+b*sin(t);
plot(x,y)
axis equal

Command Window >> plotEllipse (-2,4,1,2) Figure 1 File Edit View Insert Tools Desktop Window Help 28 ya IE - O -ox- function

Add a comment
Know the answer?
Add Answer to:
I need help doing this in MatLab please! The parametric equation for an ellipse centered at...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Give an equation in the standard coordinates for R2 that describes an ellipse centered at the ori...

    6.10 Give an equation in the standard coordinates for R2 that describes an ellipse centered at the origin with a length 4 major cord parallel to the vector 13,4 and a length 2 minor axis. (The major cord is the longest line segment that can be inscribed in the ellipse.) 10 - 6.1 Give an equation in the standard coordinates for R2 that describes an ellipse centered at the origin with a length 4 major cord parallel to the vector...

  • resolve using MATLAB 9. A parametric equation is given by Plot the function for osese. Format...

    resolve using MATLAB 9. A parametric equation is given by Plot the function for osese. Format the plot such that both axes will range from-1.5 to L.S 1e. The butterfly curve (Fay, T H The Betterly Curve Amer. Math. Meethly 96, pp 442-443 1989) is given by the foBowing parametric equ tions On one page make two plots of butterfly curves One for os2 and the other for 40 II. A plot of an astroad is shown in the fiqure...

  • Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to...

    Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...

  • Hi I am studing multivariable calculus and I am asked to write down the parametric equation for t...

    Hi I am studing multivariable calculus and I am asked to write down the parametric equation for the conic sections. I know, you are probably thinking " just do a google search". However, it is not totally out there on the web for all the cases. I would please like it if you could write down form the parmetirc equation of a conic section for both the vertical and horizontal categories. Thanks should be an easy thing to do ;)...

  • A causal discrete-time system is described by the following difference equation: Use Matlab to write a...

    A causal discrete-time system is described by the following difference equation: Use Matlab to write a script to complete the following tasks. Turn in the output created by the Matlab "publish" utility. (a) Compute and plot the impulse response h[n], 0くn 〈 50. Use the function h=imp2(b, a , N ) to find the impulse response, and use the stem ) function to create the plot. (b) Let x[n] be defined by (n - 15)2 0n K 30 x[n] elsewhere...

  • MATLAB, Please answer question 1. + ENGR 102 Homework 9 :- 1) An elliptical staircase that...

    MATLAB, Please answer question 1. + ENGR 102 Homework 9 :- 1) An elliptical staircase that decreases in size with height can be modeled by the parametric equations: r cos(t) y-rsint) it m) Where, e-0.04t Ib cos(O)+ [a sin()]- a and b are the semimajor and semiminor axes of the ellipse, h is the staircase height, and n is the number pf revolutions that the staircase makes. Make a 3-D plot of the staircase with a 20 m, b 10...

  • Give parametric equations that describe a full circle of radius​ R, centered at the origin with...

    Give parametric equations that describe a full circle of radius​ R, centered at the origin with clockwise​ orientation, where the parameter t varies over the interval ​[0,22​]. Assume that the circle starts at the point​ (R,0) along the​ x-axis. Consider the following parametric​ equations, x=−t+7​, y=−3t−3​; minus−5less than or equals≤tless than or equals≤5. Complete parts​ (a) through​ (d) below. Consider the following parametric equation. a.Eliminate the parameter to obtain an equation in x and y. b.Describe the curve and indicate...

  • Matlab for engineers 5th edition please help me with this problem with explanation. Consider the following...

    Matlab for engineers 5th edition please help me with this problem with explanation. Consider the following mathematical expression to create a single input-output function. y= −x​3+ x​2 + 2 a)Create a single input-output function that can accept scalar and matrix values. b)Plot the output versus the input, and properly label the axes and add a title. Note: the plot command should be coded inside the function file. c)Calculate y values for x= [−10, 10] with an appropriate increment.

  • you can skip question 1 Sketch the graph of x(t) sin(2t), y(t) = (t + sin(2t))...

    you can skip question 1 Sketch the graph of x(t) sin(2t), y(t) = (t + sin(2t)) and find the coordinates of the points on the graph where the tangent is horizontal or vertical (please specify), then compute the second derivative and discuss the concavity of the graph. 1. Show that the surface area generated by rotating, about the polar axis, the graph of the curve 2. f(0),0 s asesbsnis S = 2nf(0)sin(0) J(50)) + (r°(®)*)de Find an equation, in both...

  • PLEASE use MATLAB and post the CODE too. I NEED this done by code/MATLAB and not by hand

    PLEASE use MATLAB and post the CODE too. I NEED this done by code/MATLAB and not by hand (30 pts) (a) Use a Mathematical MatLab and the concept of level curves to plot representative 1. graphs of members of the family of solutions of the differential equation 42 Experiment with different numbers of level curves as well as various rectangular regions (b) On separate coordinate axes plot the graphs of the particular solutions corresponding to the initial conditions: y(0)1; y(0)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT