Filter löschen
Filter löschen

Solving simultaneous equations to give me forces at certain loads

10 Ansichten (letzte 30 Tage)
Gian Paulo
Gian Paulo am 1 Mär. 2023
Beantwortet: Shushant am 14 Mär. 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 Kommentar
Star Strider
Star Strider am 1 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Shushant
Shushant am 14 Mär. 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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by