Finding angles with optimizaiton

조회 수: 1 (최근 30일)
MmO
MmO 2020년 12월 8일
편집: Ameer Hamza 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에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by