Question: How do I find the max value and the unknown variables of f=-cos(theta_A).*cos(theta_B)-sin(theta_A).*sin(theta_B).*sin(phi_A).*sin(phi_B)-cos(phi_A).*cos(phi_B).*sin(theta_A).*sin(theta_B) in matlab. Where theta_A, theta_B, phi_A, phi_B are unknown variables. So the
How do I find the max value and the unknown variables of f=-cos(theta_A).*cos(theta_B)-sin(theta_A).*sin(theta_B).*sin(phi_A).*sin(phi_B)-cos(phi_A).*cos(phi_B).*sin(theta_A).*sin(theta_B) in matlab. Where theta_A, theta_B, phi_A, phi_B are unknown variables. So the range for theta =0:0.01:pi and phi =0:0.01:2*pi. Please tell me how to put the code in matlab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
