MATLAB Answers

abcdr
0

I want to find the solution for the eqautions x^2+y^2==3*x*y^2, x^3-x^2==y^2-y and plot graphs in matlab.

Asked by abcdr
on 16 Sep 2018 at 20:21
Latest activity Commented on by madhan ravi on 16 Sep 2018 at 20:40

To solve the equations mathematically, the command [solx,soly]=solve(x^2+y^2==3*x*y^2, x^3-x^2==y^2-y) can be used. However, I am unable to plot a graph for 'solx'. Can you please help with the plotting part of both solx,soly.

  0 Comments

Sign in to comment.

1 Answer

Answer by madhan ravi on 16 Sep 2018 at 20:26

syms x y
[solx,soly]=solve(x^2+y^2==3*x*y^2, x^3-x^2==y^2-y)
plot(solx,soly,'ok')

  2 Comments

Thank you for the answer. If we use 'plot(solx,soly,'ok')', the imaginary part of the equations is ignored. How do we plot the imaginary part? What is the plot for 'solx'?

plot(real(solx),imag(solx),'ob')

Likewise for soly.

Sign in to comment.