How to make a 3D plot of 41x41x41 datapoints

조회 수: 4 (최근 30일)
MM 2020년 2월 7일
편집: MM 2020년 2월 7일
I have done some simulations creating 41x41x41 datapoint and I would like to plot this in 3D. The points are either 1 (good) or 0 (bad) (or 1 and NaN or anything like this) and I want to show the area of good points in a 3D plot but I have no idea to do this.
The figure can be a pointcloud or just a solid in the middle of the figure (all the good points should be close to each other)
EDIT: I've added a dummy file with some data (5x5x5) which I try to plot in 3D (ABC_test). I'll add some real data file when I have the data available.

답변 (2개)

M 2020년 2월 7일
편집: M 2020년 2월 7일
You can have a look here to see different solutions to plot data in 3D:
You can also consider using the plot3 function:
  댓글 수: 1
MM 2020년 2월 7일
편집: MM 2020년 2월 7일
These don't work for me. At least I can't get them to work :)
I've added a file to the openingpost (ABC_test) which I try to plot in 3D (I'll add some real data later when it's available)
I thought scatter plot ( ) would be the way to do it, but I can't get that to work either.

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

Guillaume 2020년 2월 7일
If you have the image processing toolbox, the easiest would be:
  댓글 수: 1
MM 2020년 2월 7일
This can plot my data! Can I add axis and grid to this figure?
So it looks something like this scatter plot (but solid, or points can be okay too)

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


Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기





Community Treasure Hunt

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

Start Hunting!

Translated by