MATLAB - adding additional data to surface plot tooltip

조회 수: 27 (최근 30일)
Ali Shakeri
Ali Shakeri 2020년 11월 5일
댓글: Walter Roberson 2020년 11월 6일
I have created a cylinder with the help of a surface plot and a 360x512 matrix with some data(named map100).
When i put my cursor over the cylinder i see my X,Y,Z on the tooltip as expected. However i would also like to see the matrix(map100) value for that point on the tooltip as well. Is this possible ? and if so how?
Any help is much appreciated..

답변 (1개)

Walter Roberson
Walter Roberson 2020년 11월 5일
I just confirmed that surf() do have the needed property.
  댓글 수: 9
Ali Shakeri
Ali Shakeri 2020년 11월 6일
My workspace that stores all variables says map100 is a 360x512 uint8.
Walter Roberson
Walter Roberson 2020년 11월 6일
Did you try my sample code? Did it work for you?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by