MATLAB Truss problem with MATLAB

  • Thread starter CR19
  • Start date
4
0
Ok, I've had a shot at this problem we've been given in MATLAB. Though I'm very new to physics forums.

I've attached the actual problem and also a few of my equilibrium equations.

I've written out the matrice in matlab but I'm guessing its incorrect as the answer I'm getting in Matlab is...

A =

Columns 1 through 12

1.0000 0 0 0.7807 1.0000 0 0 0 0 0 0 0
0 1.0000 0 0.6249 0 0 0 0 0 0 0 0
0 0 0 0 -1.0000 0 0 0 1.0000 0 0 0
0 0 0 0 0 -1.0000 0 0 0 0 0 0
0 0 0 0 0 0 0 -0.7807 -1.0000 0 0 0.7807
0 0 0 0 0 0 0 -0.6249 0 -1.0000 0 -0.6249
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 1.0000 0 0 0 0 0 0 0 0 0
0 0 0 -0.7807 0 0 1.0000 0.7807 0 0 0 0
0 0 0 -0.6249 0 1.0000 0 0.6249 0 0 0 0
0 0 0 0 0 0 -1.0000 0 0 0 1.0000 0
0 0 0 0 0 0 0 0 0 -1.0000 0 0
0 0 0 0 0 0 0 0 0 0 -1.0000 -0.7807
0 0 0 1.0000 0 0 0 0 0 0 0 0

Columns 13 through 16

0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
1.0000 0 0 0
0 0 0 0
-1.0000 0 1.0000 0
0 -1.0000 0 0
0 0 -1.0000 -0.7807
0 0 0 -0.6249
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0.7807
-0.6249 0 0 0.6249


b =

20
0
0
-10
0
-20
0
-10
0
20
0
0
0
0
0
0


x =

20.0000
-394.7389
-334.7389
631.6860
-493.1616
10.0000
12.4934
615.6834
-493.1616
0
12.4934
-583.6781
443.1882
10.0000
443.1882
-567.6755

Results:

x(Ha)=20 [kN]
x(Va)=-394.7389 [kN]
x(1)=-334.7389 [kN]
x(2)=631.686 [kN]
x(3)=-493.1616 [kN]
x(4)=10 [kN]
x(5)=12.4934 [kN]
x(6)=615.6834 [kN]
x(7)=-493.1616 [kN]
x(8)=0 [kN]
x(9)=12.4934 [kN]
x(Ve)=-583.6781 [kN]
x(10)=443.1882 [kN]
x(11)=10 [kN]
x(12)=443.1882 [kN]
x(13)=-567.6755 [kN]

I've written all the equilibrium equation from Horizontal forces Equation 1, Vertical Forces @A Equation 2...but the calculations which I performed by myself I got respectable answers.. But with MATLAB it doesn't appear to give me appropriate answers....

Can anyone help or point me in the right direction.

Many Thanks
 

Attachments

Want to reply to this thread?

"Truss problem with MATLAB" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top