Finding angles with optimizaiton
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Ameer Hamza
il 8 Dic 2020
Modificato: Ameer Hamza
il 8 Dic 2020
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())
0 Commenti
Vedere anche
Categorie
Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!