Solving 2 equations with 4 unknowns

I was instructed to use MATLAB to solve these 2 dyad equations contain 4 unknowns. I have little to no experience in MATLAB, and have been struggling with my code.
Input:
syms x y z w
eq1= x*exp(i*w)*(exp(i*y)-1)+(2*exp(64.44*i))*(exp(-37.87*i)-1)==3.606*exp(-33.69*i)
eq2= x*exp(i*w)*(exp(i*z)-1)+(2*exp(64.44*i))*(exp(-104.94*i)-1)==7.810*exp(-50.19*i)
solve (eq1, eq2, x, y, z, w)\
Output:
Warning: Unable to solve symbolically. Returning a numeric solution using vpasolve.
> In sym/solve (line 304)
ans =
struct with fields:
x: [1×1 sym]
y: [1×1 sym]
z: [1×1 sym]
w: [1×1 sym]
I have been looking through forums, but have been unable to find a solution. Please let me know what I am doing wrong and thank you ahead of time.

Réponses (1)

Walter Roberson
Walter Roberson le 14 Mar 2021
sol = solve (eq1, eq2, x, y, z, w)
sol.x
sol.y
sol.z
sol.w
What you will be given is one out of the infinite number of solutions.

Produits

Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by