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

Click For Summary
SUMMARY

The discussion focuses on finding the maximum solution for the equation F = (sqrt((b^2 + c^2) - (2bc cos(y))) x M) / (bc sin(y)) using MATLAB. The user seeks to optimize F with the constraints 0 < b < 6, 0 < c < 6, and 0 < y < 110. A suggested approach includes evaluating the function with specific values for b, c, y, and M, demonstrating the calculation of F using MATLAB syntax. The conversation emphasizes the importance of utilizing MATLAB's capabilities for 3D graphing to visualize the solution space.

PREREQUISITES
  • Understanding of MATLAB programming and syntax
  • Familiarity with mathematical optimization techniques
  • Knowledge of trigonometric functions and their applications
  • Basic concepts of 3D graphing in MATLAB
NEXT STEPS
  • Explore MATLAB's optimization toolbox for constrained optimization
  • Learn how to create 3D plots in MATLAB to visualize equations
  • Investigate the use of MATLAB's fmincon function for maximizing functions
  • Study the implications of varying parameters b, c, and y on the function F
USEFUL FOR

This discussion is beneficial for engineers, mathematicians, and data scientists who are working with optimization problems in MATLAB, particularly those dealing with multi-variable equations and 3D visualizations.

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

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K