I'm trying to plot a diagram showing a distribution of stress over a section of a beam in matlab or some other program. This is the given function:
s(y): (q/(h^3*l))*(l^3*2*y+(l/5)*(3*h^2*y-20*y^3))
where s represents the stess, y the height. y goes from -h/2 to h/2. h,q and l are given as known values without specific numbers.
Can someone please explain how to do this in some program or even manually?
