MATLAB: Haw can I plot these two equations

3d plotsMATLABmatlab functionplotting

I want to plot these two equation in the same image if it is possible. Thank yous a lot
exp(x)*(sin(y)-cos(y)-(exp(x)*sin(2*y)))==0
exp(x)*(-sin(y)-cos(y)+(2*exp(x)*cos(2*y))) ==0

Best Answer

Probably the easiest way is to use the contour function:
f1 = @(x,y) exp(x).*(sin(y)-cos(y)-(exp(x).*sin(2*y)));
f2 = @(x,y) exp(x).*(-sin(y)-cos(y)+(2*exp(x).*cos(2*y)));
[X,Y] = ndgrid(-10:0.1:10);
figure
contour(X, Y, f1(X,Y), [0 0], 'r')
hold on
contour(X, Y, f2(X,Y), [0 0], 'g')
hold off
grid on
Experiment to get the result you want.