5.2 MATLAB Functions Used 63 MATLAB Example 5.2 Consider a graphite-reinforced polymer composite lamina with the elastic con- stants as given in Example 2.2.Use MATLAB to plot the values of the six elements Sij of the transformed reduced compliance matrix [S]as a function of the orientation angle0 in the range-π/2≤0≤π/2. Solution This example is solved using MATLAB.First,the reduced 3 x 3 compliance matrix is obtained as follows using the MATLAB function ReducedCompliance of Chap.4. >>S=ReducedComp1 iance(155.0,12.10,0.248,4.40) S= 0.0065 -0.0016 0 -0.0016 0.0826 0 0 00.2273 Next,the transformed reduced compliance matrix [S]is calculated at each value of9 between-g0°andg0°in increments of 10°using the MATLAB function Sbar. >S1=Sbar(s,-90) S1= 0.0826 -0.0016 -0.0000 -0.0016 0.0065 0.0000 -0.0000 0.0000 0.2273 >S2=Sbar(s,-80) S2= 0.0909 -0.0122 -0.0452 -0.0122 0.0193 0.0712 -0.0226 0.0356 0.2061 >S3=Sbar(s,-70) S3= 0.1111 -0.0390 -0.0647 -0.0390 0.0528 0.1137 -0.0323 0.0568 0.15245.2 MATLAB Functions Used 63 MATLAB Example 5.2 Consider a graphite-reinforced polymer composite lamina with the elastic constants as given in Example 2.2. Use MATLAB to plot the values of the six elements S¯ij of the transformed reduced compliance matrix [S¯] as a function of the orientation angle θ in the range −π/2 ≤ θ ≤ π/2. Solution This example is solved using MATLAB. First, the reduced 3 × 3 compliance matrix is obtained as follows using the MATLAB function ReducedCompliance of Chap. 4. >> S = ReducedCompliance(155.0, 12.10, 0.248, 4.40) S = 0.0065 -0.0016 0 -0.0016 0.0826 0 0 0 0.2273 Next, the transformed reduced compliance matrix [S¯] is calculated at each value of θ between −90◦ and 90◦ in increments of 10◦ using the MATLAB function Sbar . >> S1 = Sbar(S, -90) S1 = 0.0826 -0.0016 -0.0000 -0.0016 0.0065 0.0000 -0.0000 0.0000 0.2273 >> S2 = Sbar(S, -80) S2 = 0.0909 -0.0122 -0.0452 -0.0122 0.0193 0.0712 -0.0226 0.0356 0.2061 >> S3 = Sbar(S, -70) S3 = 0.1111 -0.0390 -0.0647 -0.0390 0.0528 0.1137 -0.0323 0.0568 0.1524