Adding a color bar to an existing plot.

조회 수: 1 (최근 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 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