Question: matrix analysis of structures: edit the code of the function below, DrawBeam, which is for 2D frames, to work for a 3d frame with coordinateds
matrix analysis of structures: edit the code of the function below, "DrawBeam", which is for 2D frames, to work for a 3d frame with 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;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
