Finding angles with optimizaiton
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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())
댓글 수: 0
참고 항목
카테고리
Help Center 및 File 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!