MATLAB Equation with 3 unknowns. how do i find the maximum solution using matlab?

AI Thread Summary
To find the maximum solution for the equation F = (sqrt((b^2 + c^2) - (2bc cos(y))) x M) / (bc sin(y)) in MATLAB with the constraints 0 < b < 6, 0 < c < 6, and 0 < y < 110, users can utilize optimization techniques. The equation involves three variables: b, c, and y, with M defined as a function of y. To visualize the relationship and potential maxima, a 3D graph can be created using MATLAB's plotting functions. Optimization functions like 'fmincon' or 'fminunc' can be employed to explore the parameter space and find the maximum value of F within the specified limits. Users are encouraged to define the function and constraints clearly in MATLAB to facilitate the optimization process.
student36
Messages
1
Reaction score
0
Equation with 3 unknowns. how do i find the maximum solution using matlab??

Hello,

Im stuck in matlab, i have an equation with 3 unknowns. how can i get the maximum answer possible? Is there a way with a 3D graph??

Equation:

F = ( sqrt((b^2 + c^2) -(2b c cos(y))) x M ) / (b c sin(y))

I have M as an answer in terms of y. its <1 x 111 double >

I have the following limits: 0<b<6 , 0<c<6 and 0<y<110

I am looking to get the maximum F, any help is appreciated thanks!
 
Physics news on Phys.org


student36 said:
Hello,

Im stuck in matlab, i have an equation with 3 unknowns. how can i get the maximum answer possible? Is there a way with a 3D graph??

Equation:

F = ( sqrt((b^2 + c^2) -(2b c cos(y))) x M ) / (b c sin(y))

I have M as an answer in terms of y. its <1 x 111 double >

I have the following limits: 0<b<6 , 0<c<6 and 0<y<110

I am looking to get the maximum F, any help is appreciated thanks!
b=10;
c=10;
y=10;
M=11;
f=(sqrt((b.^2 + c.^2)-(2*b*c*cos(y)))*M)/(b*c*sin(y));

Hope this will help you out.
 

Similar threads

Back
Top