Finding angles with optimizaiton

Hello,
I am new to Matlab and would like to find the closest angles to this relationship
How can I do this with the optimization tools in matlab?
Best Regards

Réponses (1)

Ameer Hamza
Ameer Hamza le 8 Déc 2020
Modifié(e) : Ameer Hamza le 8 Déc 2020

0 votes

You need at least two equations to find a unique solution. For a single equation, fix the value of one of these variables
theta = 0.5;
fun = @(phi) sin(theta)^2*cos(phi)^2;
phi = fsolve(fun, rand())

Catégories

Question posée :

MmO
le 8 Déc 2020

Modifié(e) :

le 8 Déc 2020

Community Treasure Hunt

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

Start Hunting!

Translated by