OKN Solution MATLAB L1 2 L2 3 L3 3 L4 2 L 001L1L2L3L4

OKN -

Solution

%% MATLAB
L1 = 2;
L2 = 3;
L3 = 3;
L4 = 2;
L = 0:0.1:(L1+L2+L3+L4);
q = 5;
P = 10;

% Left support A, Right support B
% Taking moment about left support (A)
RB = ((q*L2*(L1+L2/2))+(P*(L1+L2+L3)))/(L1+L2+L3+L4);
RA = (q*L2+P)-RB;
V = zeros(101);
M = zeros(101);

for i = 1:1:20
V(i) = RA;
M(i) = RA*(i-1)*0.1;
end
temp = 0;
for i = 21:1:50
V(i) = RA-q*temp;
M(i) = M(20) - q*temp*temp/2;
temp = temp + 0.1;
end
for i = 51:1:80
V(i) = V(50);
M(i) = M(50) + V(50)*(i-50)*0.1;
end
for i = 81:1:101
V(i) = V(50)-10;
M(i) = M(80) + (V(50)-10)*(i-80)*0.1;
end

plot(L,V,L,M)
grid on;

 OKN - Solution%% MATLAB L1 = 2; L2 = 3; L3 = 3; L4 = 2; L = 0:0.1:(L1+L2+L3+L4); q = 5; P = 10; % Left support A, Right support B % Taking moment about left su

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site