How to Plot Bending Moment Diagram

I wrote a piece of code to solve any 2D frame-type structures problem. As my output, I generated the following:
  • Displacement at each node
  • Shapefunction for Bending Moment in each member M(x)
  • Shapefunction for Shear Force in each member V(x)
  • Shapefunction for Displacement of each member Y(x)
Now I would like to plot the the Displaced shape, shear force diagram, and bending moment diagram for the entire structure. To do that, I am planning on starting each shapefunction at the Start node of the member, then plot it x=0:Length and then rotate it in the same angle as the moment.
How would I go ahead to do this? I have no idea how to rotate and position a plot accordingly.
References: This is roughly what I would like my plot to look like (for bending moment and displaced shape): http://debug.pi.gr/BookImagesEn2/Book-B_3330_7a.jpg

2 comentarios

Ankit Kharat
Ankit Kharat el 19 de En. de 2021
can u please send the code???
Jacob Salman
Jacob Salman el 30 de Oct. de 2022
can u send me the code please? i really need it

Iniciar sesión para comentar.

Respuestas (2)

Mahmoud Khadijeh
Mahmoud Khadijeh el 17 de Nov. de 2018

0 votos

Could you please send your code to me ?
I am working on a project like this and I really need it
Phung Trung
Phung Trung el 17 de Dic. de 2019

0 votos

Can you send me your code. I have a problem with it

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

ThB
el 3 de Nov. de 2016

Comentada:

el 30 de Oct. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by