summaryrefslogtreecommitdiff
path: root/3137/CH8/EX8.5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3137/CH8/EX8.5
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '3137/CH8/EX8.5')
-rwxr-xr-x3137/CH8/EX8.5/Ex8_5.sce61
1 files changed, 32 insertions, 29 deletions
diff --git a/3137/CH8/EX8.5/Ex8_5.sce b/3137/CH8/EX8.5/Ex8_5.sce
index 426ae14a9..19fa8e967 100755
--- a/3137/CH8/EX8.5/Ex8_5.sce
+++ b/3137/CH8/EX8.5/Ex8_5.sce
@@ -1,29 +1,32 @@
-//Initlization of variables
-F1=2000 //lb
-w=100 //lb/ft
-//Calculations
-R_r=(-F1*5+w*14*13)/20 //lb
-R_l=(F1*25+w*14*7)/20 //lb
-//Shear Force matrix
-V=[-2000,-2000,990,990,-410,0] //lb
-//Bending Moment matrix
-B=[0,-10000,-4060,840,0]
-//Length matrix for shear force
-X_v=[0,5,5.0001,11,20.89999,20.9]
-//Length matrix for bendimg moment
-X_b=[0,5,11,19.9,20.9]
-//Plotting
-subplot(221)
-plot(X_v,V,X_v,0)
-xlabel("Shear Force Diagram","Span","Shear Force")
-subplot(222)
-plot(X_b,B,X_b,0)
-xlabel("Bending Moment Diagram","Span","Bending Moment")
-//Result
-clc
-printf('The bending Moment and Shear Force diagrams have been plotted\n')
-//Note
-//The textbook does not specify the span and hence there seems to be a disagreement between the textbook and scilab solution.here the values have just been plotted
-
-
-
+//Initlization of variables
+F1=2000 //lb
+w=100 //lb/ft
+//Calculations
+R_r=(-F1*5+w*14*13)/20 //lb
+R_l=(F1*25+w*14*7)/20 //lb
+//Shear Force matrix
+V=[-2000,-2000,990,990,-410,0] //lb
+//Bending Moment matrix
+B=[0,-10000,-4060,840,0]
+//Length matrix for shear force
+X_v=[0,5,5.0001,11,20.89999,20.9]
+//Length matrix for bending moment
+X_b=[0,5,11,19.9,20.9]
+//Plotting
+subplot(221)
+plot(X_v,V)
+mtlb_hold on
+plot(X_v,zeros(1,length(X_v)))
+mtlb_hold off
+xlabel("Shear Force Diagram","Span","Shear Force")
+subplot(222)
+plot(X_b,B)
+mtlb_hold on
+plot(X_b,zeros(1,length(X_b)))
+mtlb_hold off
+xlabel("Bending Moment Diagram","Span","Bending Moment")
+//Result
+clc
+printf('The bending Moment and Shear Force diagrams have been plotted\n')
+//Note
+//The textbook does not specify the span and hence there seems to be a disagreement between the textbook and scilab solution.here the values have just been plotted \ No newline at end of file