An interactive introduction to MATLAB

(Jeff_L) #1
C.3scripts and functions 87

when the following resistors are connected in parallel:50 Ω,75 Ω,300 Ω,
60 Ω,500 Ω,180 Ω, and200 Ω.


  1. Functions
    A 2dstate of stress at a point in a loaded material is defined by three
    components of stressesσxx,σyy, andτxy. The maximum and minimum


σyy

σxx

τxy

Figure 27: A 2dstate of stress at a point in a loaded material

normal stresses (principal stresses) at the point, σmaxandσmin, are
calculated from the stress components by:

σmaxmin=σxx+σyy
2

±

√(

σxx−σyy
2

) 2

+τ^2 xy

Write a user-defined function that determines the principal stresses
from the stress components. For the function name and arguments
use[Smax,Smin] = princstress(Sxx,Syy,Sxy). Use the function
to determine the principal stresses for the following states of stress:
σxx= −190 MPa,σyy=145 MPa,τxy=110 MPa.
Free download pdf