Adding a color bar to an existing plot.

2 ビュー (過去 30 日間)
Samuel Thompson
Samuel Thompson 2017 年 11 月 1 日
編集済み: Samuel Thompson 2017 年 11 月 3 日
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 Center および File ExchangeStress and Strain についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by