# How to plot level curves of f(x,y) = 2x^2 + 5y^2. f(x,y) = c for c = 1,2,3,4,5,6

407 views (last 30 days)

Show older comments

##### 0 Comments

### Answers (2)

Roger Stafford
on 10 Apr 2018

Edited: Roger Stafford
on 10 Apr 2018

Your "level" curves are all ellipses and can most easily be generated by:

t = linspace(0,2*pi);

x = sqrt(c/2)*cos(t);

y = sqrt(c/5)*sin(t);

plot(x,y)

axis equal

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!