Finding angles with optimizaiton
2 ビュー (過去 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!