Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Truss Structure Plotting A truss structure is defined with the following matrice

ID: 1843607 • Letter: T

Question

Truss Structure Plotting A truss structure is defined with the following matrices. E Nodes = [1 2 2 3 3 4 1 3 1 4], x node = [0 5 0 0 5 0 0 10 0], IBC = [0 1 0 0 1 1 1 1], and VBC =[0 0 0 0 0-100 100 0] Plot truss members with lines, and label them with numbers. Plot nodes with circles and label them with numbers. (Radius of circle is 0.3) Your figure will look like the figure given below. You can use either an automated code or manual code for plotting. You do not need to show boundary conditions.

Explanation / Answer

Enodes = [1 2;
2 3;
3 4;
1 3;
1 4];
xNodes = [0 5;
0 0;
5 0;
10 0];
xunit = 0;
yunit = 0;
for i = 1 : length(xNodes)
hold on
th = 0:pi/50:2*pi;
xunit = 0.3 * cos(th) + xNodes(i,1);
yunit = 0.3 * sin(th) + xNodes(i,2);
h = plot(xunit, yunit);
text(xNodes(i,1),xNodes(i,2),[num2str(i)]);
hold on
end

for i = 1 : length(Enodes)
p1 = Enodes(i,1);
p2 = Enodes(i,2);
x = [xNodes(p1,1),xNodes(p2,1)];
y = [xNodes(p1,2),xNodes(p2,2)];
mex = 0.5*x(1,1)+0.5*x(1,2);
mey = 0.5*y(1,1)+0.5*y(1,2);
plot(x,y)
text(mex,mey,[num2str(i)]);
hold on;
end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote