Solving simultaneous equations to give me forces at certain loads

5 vues (au cours des 30 derniers jours)
Gian Paulo
Gian Paulo le 1 Mar 2023
I want to solve these simultaneous equations in a way that allows me to get the values of F (force) at any load applied (w); I want to be able to type in any load and the code gives me the forces F. The angle theta is 45 degrees. To illustrate this, I am building a cardboard bridge and I am trying to find the amount of load I can apply before any truss or member of that bridge fails. The force on the members is F and the load is w (the bridge has a certain breaking load that I am yet to determine but shouldn't be an issue in this code). How can I do this? I tried using syms but I did not get anywhere. Appreciate the help
  1 commentaire
Star Strider
Star Strider le 1 Mar 2023
They appear to be linear (unless you are solving for θ), so it should be straightforward.
The linsolve or lsqr functions or simply the mldivide, \ functions would likely be appropriate.

Connectez-vous pour commenter.

Réponses (1)

Shushant
Shushant le 14 Mar 2023
According to my understanding, you are facing difficulty solving your set of simultaneous equation. You can use "syms" to solve the set of equations. Check out this documentation to get a deeper understanding on solving system of equations using "syms" Solve System of Linear Equations - MATLAB & Simulink (mathworks.com).
Here is a sample code on how you can use "syms" to solve your set of equations. I have made some random equation and solved them using "solve" function. Hope this gives you a better understanding.
syms F [2,1];
syms Rx [1,1];
theta = pi/4;
x(1) = F1*cos(theta)+F2+Rx1==0;
y(1) = F1*sin(theta)+Rx1==0;
x(2) = -F1*cos(theta)+F2*cos(theta)==0;
y(2) = -F1*sin(theta)+Rx1-F2*sin(theta)==0;
sol = solve([x(1:end), y(1:end)], [F1, F2, Rx1])
sol = struct with fields:
F1: 0 F2: 0 Rx1: 0

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by