I'm not famililar with the error. If I run the plot for the moment diagram it works, but not for the shear force.
%% conversions
w = 4; % VDL in k/ft
d = 12; % Distance for VDL
P1 = w*d; % VDL to Point Load in kip
a = 6; % centroid of the point load
P2 = 60;%% Reaction Forces
Ay = P1 + P2;MA = P1*a + P2*20;%% Consider the left of a section through a-a
x1 = linspace(0,12);P3 = P1*x1;% Equilibrium
Va = Ay - P3;Ma = (Ay*x1)-(P3.*(x1/2))-MA;%% Consider the right of a section through b-b
x2=linspace(12,20);% EquilibriumVb = P2;Mb = -60*(20-x2);X = [x1 x2]; V = [Va Vb]; M = [Ma Mb];subplot(211)plot(X,V)subplot(212)plot(X,M)-----------------------------Error using plotVectors must be the same length.Error in hibbler_SFBM_142 (line 32)plot(X,V)
Best Answer