matrix analysis of structures: edit the code of the functionbelow, “DrawBeam”, which is for 2D frames, to work for a 3d framewith coordinateds X, Y, Z.
function DrawBeam(NODES,MEMBERS,CL,LW)
%CL:Color
%LW: Linewidth
NOM = size(MEMBERS,1);%Number of members
for i=1:NOM
NID = MEMBERS(i,1:2);
XY = NODES(NID,:);
line(XY(:,1),XY(:,2),’color’,CL,’linewidth’,LW);
end;
Expert Answer
An answer will be send to you shortly. . . . .