6 unknowns 6 equations PLS HELP ME!!
Mostrar comentarios más antiguos
Hello, i have a term project but i cant do this project. Please help me. I must found l2 l3 m1 m3 n1 and n2 and i have to create 3x3 matrix with l1, m2,n3. This code give me too many solutions. Just for l2 is like 10 solutions.
syms l2 l3 m1 m3 n1 n2;
l1= 1/2;
m2= 1/2;
n3=1;
eq1=((l1)^2)+((m1)^2)+((n1)^2) == 1;
eq2=((l2)^2)+((m2)^2)+((n2)^2) == 1;
eq3=((l3)^2)+((m3)^2)+((n3)^2) == 1;
eq4=(l1*l2)+(m1*m2)+(n1*n2) == 0;
eq5=(l1*l3)+(m1*m3)+(m1*n3) == 0;
eq6=(l2*l3)+(m2*m3)+(n2*n3) == 0;
eqns = [ eq1, eq2, eq3, eq4, eq5, eq6];
vars = [l2 l3 m1 m3 n1 n2];
[l2, l3, m1, m3, n1, n2] = vpasolve(eqns, vars);
A=[l1 m1 n1; l2 m2 n2; l3 m3 n3];
disp('Transformation Matrix=')
disp(A)
2 comentarios
Roger Stafford
el 26 de Oct. de 2017
What you have are really six equations and nine unknowns, not six. If l1,m1,n1 are regarded as x,y,z coordinates of a vector, and similarly with l2,m2,n2 and l3,m3,n3, then your equations amount to the requirement that these three vectors are each of unit length and are mutually orthogonal. That leaves you with three degrees of freedom in choosing these vectors, so of course there are many possible solutions, namely an entire infinity of them. What else would you expect as a reault?
Walter Roberson
el 27 de Oct. de 2017
However, l1, m2, and n3 are given specific numeric values, taking you back to 6 unknowns.
Respuesta aceptada
Más respuestas (1)
yigit baser
el 28 de Oct. de 2017
0 votos
Categorías
Más información sobre 6DOF 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!