Solve a big system of equations in Matlab

4 次查看(过去 30 天)
Hello guys. So I have this problem where I am supposed to calculate the force in each rod of a structural framework. And I thought the easiest and most pretty way will be in Matlab. So what I've done so far is that I have set up an equation for each "node" in x and y axis. Now Im trying to get that into Matlab. So I have 20 unknowns and have created a zeros(20) matrix and will replace each zero with a value.
Since I have 10 nodes I will have 20 equations to put into Matlab. So for node 1 I will have to use row 1 for x-equations and row 2 for y-equations?
Also at each end I have supports that I have chosen to call Va,Ha and Vb. And each of those get a column of their own, A(,1), A(,2) and A(,3).
Is this the best way to do it or should I choose some other method?

回答(1 个)

Joakim Karlsson
Joakim Karlsson 2018-4-16
Ok update. When I try to solve the system with backslash, mldivide etc. It keeps saying "Matrix is Singular to Working Precision".

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by