MATLAB: How can i represent 2 functions on the same graph

functionfunctionsgraphMATLABplotplotting

I am having an issue in representing two functions in one graph as i cant solve them in order to the same variable ( x or y. The two functions are: 2x^3-5x-2y^3+1=0 and x^4+4y^4y-6=0
I have tried using plot, mesh , hold on etc but nothing seems to work… Does anyone have an ideia ?

Best Answer

One option is the fimplicit (link) function:
f1 = @(x,y) 2*x.^3-5*x-2*y.^3+1;
f2 = @(x,y) x.^4+4*y.^4.*y-6;
figure(1)
fimplicit(f1, [-10 10 -10 10])
hold on
fimplicit(f2, [-10 10 -10 10])
hold off
legend('f_1(x,y)', 'f_2(x,y)', 'Location','NW')