Graph Bending Moment Equation in Excel/Matlab

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
aaalanc
Messages
1
Reaction score
0
how can i graph the equation of the bending moment?
The equation is: σ = MC / I and i want to graph in excel or matlab, , so i know that the graph is a straight line, and i have the values, but i don't know how draw the graph
 
Physics news on Phys.org
let's say you've got a set of x-coordinates, from x=0 to x=L. If you're using matlab, type the following:

x=linspace(0,L,L)

where L is the total length of the beam. That will give you an entire array of x-values.

I'm assuming M is dependent upon x. You should have some sort of equation already. C and I are constant the whole length of the beam, I hope. (If not, then they still depend on x, and you can simplify MC/I into one big function of x). So now, define M, C, and I in the program:
M= whatever
C= whatever
I = 1/12*whatever*whatever^3

Then, define Sigma in terms of M, C, and I (which are already defined in terms of x).

Sigma = M*C/I

Finally, you can plot the results by typing:

plot(x,Sigma)
 
Did you do as I suggested and revise what a bending moment is?

You say you want to plot a graph of bending moment but your formula is for something different.

What is sigma, M, C and I in your formula and how is a plot of sigma v x a plot of bending moment?