summaryrefslogtreecommitdiff
path: root/3137/CH8/EX8.2/Ex8_2.sce
blob: 2a80d8895e56509570a9b7297d2f6ee6117fac45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Initilization of variables
//length matrix
L1=[0,4,6] //m
//Bending moment matrix
B=[0,400,0] //N.m
//Shear force plotting
//Here the left side and right side lengths are considered as close as 4 to keep up with right and left distinctions
L=[0,3.999,4,5.99998,6]
S=[100,100,-200,-200,0]
//Calculations cum Result
subplot(221)
plot(L1,B)
xtitle("Bending Moment Diagram","Span","Bending Moment")
subplot(222)
plot(L,S)
mtlb_hold on
plot(L, zeros(length(L),1))
xtitle("Shear Force Diagram","Span","Shear Force")