Finding angles with optimizaiton
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I am new to Matlab and would like to find the closest angles to this relationship
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/454783/image.png)
How can I do this with the optimization tools in matlab?
Best Regards
0 Kommentare
Antworten (1)
Ameer Hamza
am 8 Dez. 2020
Bearbeitet: Ameer Hamza
am 8 Dez. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!