Solving simultaneous equations to give me forces at certain loads
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Star Strider
el 1 de Mzo. de 2023
They appear to be linear (unless you are solving for θ), so it should be straightforward.
Respuestas (1)
Shushant
el 14 de Mzo. de 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])
0 comentarios
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!