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?) 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