Finding angles with optimizaiton

1 次查看(过去 30 天)
MmO
MmO 2020-12-8
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

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-12-8
编辑:Ameer Hamza 2020-12-8
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())

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by