How to plot a 3-D "hotspot" figure

조회 수: 3 (최근 30일)
RickyBoy
RickyBoy 2022년 7월 27일
댓글: RickyBoy 2022년 7월 29일
I have a set of coordinates (x,y,z) for which there is a value f(x,y,z) I would like to illustrate. For the most part f will be close to zero, but in the vicinity of a small number of coordinates f will take an arbitrarily large value. My ambition is to illustrate this in such a way as these coordinates of interest appear as 'hotspots' within a cuboid defined by designated bounds on x,y,z. Should this be possible I aniticipate that the illustration would appear as a small number of spheres within the cuboid. Can anyone advise how such a plot can be implemented?

채택된 답변

Les Beckham
Les Beckham 2022년 7월 27일
I would suggest looking at this example for the scatter3 function: scatter3 with varying marker colors
You could use your f(x, y, z) as the c (color) argument. It is also possible to have varying marker sizes.
  댓글 수: 5
Les Beckham
Les Beckham 2022년 7월 29일
You are welcome.
RickyBoy
RickyBoy 2022년 7월 29일
A more refined version, much as I was aiming for. A good illustration of the contribution of @Les Beckham

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by