MATLAB: Solve two equations for two unknown variables

solve

how can i solve two equations for two unknown variables?
like these two:
z=f1(x)+f2(y)
z=f3(x)+f4(y)
for z=0
please help, thx in advance.

Best Answer

G*m = d
G = [f1,f2;f3,f4];
d = [z1;z2];
m = G\d;
x = m(1);
y = m(2);