필터 지우기
필터 지우기

How do I find the max value and the unknown variables of f=-cos(the​ta_A).*cos​(theta_B)-​sin(theta_​A).*sin(th​eta_B).*si​n(phi_A).*​sin(phi_B)​-cos(phi_A​).*cos(phi​_B).*sin(t​heta_A).*s​in(theta_B​)

조회 수: 1 (최근 30일)
Where theta_A, theta_B, phi_A, phi_B are unknown variables. So i put the range for theta =0:0.01:pi and phi =0:0.01:2*pi. Please tell me how to put the code , i would be appreciate. Thanks

답변 (2개)

Torsten
Torsten 2015년 7월 16일
help fminsearch help fminunc help fminbnd
Best wishes
Torsten.

Torsten
Torsten 2015년 7월 16일
One solution is
theta_A=pi, theta_B=phi_A=phi_B=0
Best wishes
Torsten.
  댓글 수: 2
Raja Emlik
Raja Emlik 2015년 7월 23일
Hi How they are 0? As i need to find max value which should be 2*sgrt(2). Could you please tell me the right command how to find the max value of multi-variable function. Thanks so much.
Torsten
Torsten 2015년 7월 23일
As far as I can see, your expression can never exceed the value of 1, and this value is attained for theta_A=pi, theta_B=phi_A=phi_B=0.
But you can test this using one of the MATLAB tools I mentionned in my first response.
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by