Solving four trigonometric equations, four unknowns
Mostrar comentarios más antiguos
Please I want to solve these four trigonometric equations, four unknowns using a matlab code
10 cos ∅3 + 10 cos ∅2 − 𝑟1 = 0
15 cos ∅4 + 12 cos ∅2 − 𝑟1 = 0
10 sin∅3 + 10 sin∅2 = 0
15 sin∅4 + 12 sin∅2 = 0
thank you in advance.
Respuesta aceptada
Más respuestas (1)
You can solve symbolically -
syms r1 t2 t3 t4
e1 = 10*cos(t3) + 10*cos(t2) - r1 == 0;
e2 = 15*cos(t4) + 12*cos(t2) - r1 == 0;
e3 = 10*sin(t3) + 10*sin(t2) == 0;
e4 = 15*sin(t4) + 12*sin(t2) == 0;
y=solve([e1 e2 e3 e4],[r1 t2 t3 t4])
y.r1
y.t2
Use double() to get numeric values
Categorías
Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

