Question

1. Develop a MATLAB code to determine, (a) the support reactions, RAy, RFy of the king post truss shown below using the given

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB CODE:

clc;
clear all;
P1=input ('Enter P1:'); %For Entering load P1
P2=input ('Enter P2:'); %For Entering load P2
P3=input ('Enter P3:'); %For Entering load P3
H=input ('Enter H:'); %For Entering value of H
L=input ('Enter L:'); %For Entering value of L
RFY = (P1/4)+(P2/2)+(3*P3/4); %Calculating RFY
RAY = (P3/4)+(P2/2)+(3*P1/4); %Calculating RAY
disp('RAY:');disp(RAY); %diaplaying value on output screen
disp('RFY:');disp(RFY);
hyp = sqrt((H/2)^2+(L/4)^2); %calculating a constant to be used later
FAB = -2*RAY*hyp/H; % calculating value of force
FAD = RAY*L/(2*H);
FBD = -P1*hyp/H;
FBC = -(FAB+FBD);
FCE = -FBC;
FCD = -(FBC*H/hyp+P2);
FEF = RFY*hyp*2/H;
FDF = -RFY*L/(2*H);
FDE = P3*hyp/H;

%Displaying Forces
disp('FAD:');disp(FAD);
disp('FAB:');disp(FAB);
disp('FBD:');disp(FBD);
disp('FBC:');disp(FBC);
disp('FCD:');disp(FCD);
disp('FCE:');disp(FCE);
disp('FDE:');disp(FDE);
disp('FEF:');disp(FEF);
disp('FDF:');disp(FDF);

Sample Results :

Enter P1:12
Enter P2:12
Enter P3:12
Enter H:6
Enter L:6
RAY:
18

RFY:
18

FAD:
9

FAB:
-20.1246

FBD:
-6.7082

FBC:
26.8328

FCD:
-60

FCE:
-26.8328

FDE:
6.7082

FEF:
20.1246

FDF:
-9

>>

Load Cwe ye) RFy13 FAD = 9 FAG20 12u6 Fac = 26-3328 Foc 20.1246 ec Fce20 -1241 aen FE Fニ20.1246 Aus Chan ame 최써 į 2. RAyI F,

Add a comment
Know the answer?
Add Answer to:
1. Develop a MATLAB code to determine, (a) the support reactions, RAy, RFy of the king...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT