Adding a color bar to an existing plot.

1 次查看(过去 30 天)
My code generates the figure below; I wish to add a colour bar that indicates the variation in stress of the deflected shape. I have the values for the stress stored in an array for each member, I wish to change the colour of the plotted members (blue) to correspond to that of the colour bar variation.
The stored data that I believe would be relevant is as follows:
  • Coordinates of each node (x,y,z): [3 x 1049]
  • Connectivity of nodes to form members:[2 x 4888]
  • Shear stress within each member: [1 x 4888]
If anybody could point me in the right direction it would be very much appreciated. Thus far I'm finding it tricky to assign the correct values of stress to the color bar whilst also plotting it in the correction position.
Sam!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Stress and Strain 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by