Using solve command for unknown vectors
Afficher commentaires plus anciens
Hello, I believe the problem I have is rather simple but I am new to MATLAB and I did not manage to find a solution. I think the situation can be described with the following simple example:
If I want to find the vectors whose Euclidean norm is 4, I would write :
V = sym('V', [3, 1], 'real')
solve(sqrt(dot(V, V)) == sym(4), V, 'real', true)
But I get weird results where V1 is 4 or -4 and V2 = V3 = 0... In the real problem I have, the only result I get is "unable to find a solution", and I thought there might be a link with this, as I am trying to solve a system depending on three vectors, and that it quite obviously doesn't work as I would expect...
Thank you for your help.
Regards,
Sacha Levy
1 commentaire
Torsten
le 4 Mai 2018
You have one equation and three unknowns - thus there are infinitely many solutions (given by the sphere around 0 with radius 4).
Best wishes
Torsten.
Réponse acceptée
Plus de réponses (2)
Sacha Levy
le 5 Mai 2018
Modifié(e) : Sacha Levy
le 5 Mai 2018
0 votes
Sacha Levy
le 5 Mai 2018
0 votes
Catégories
En savoir plus sur Conversion dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!