Truss Structure Plotting A truss structure is defined with t
     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.![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  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](/WebImages/45/truss-structure-plotting-a-truss-structure-is-defined-with-t-1142587-1761613177-0.webp) 
  
  Solution
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
![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  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](/WebImages/45/truss-structure-plotting-a-truss-structure-is-defined-with-t-1142587-1761613177-0.webp)
