필터 지우기
필터 지우기

Volume visualization of 4 dimensional data

조회 수: 1 (최근 30일)
Gabriella Tany
Gabriella Tany 2018년 5월 9일
댓글: Gabriella Tany 2018년 5월 14일
Hi,
I would like to make a volume visualization mixed with a heatmap kind off. I have 4 vector values: x coordinate, y coordinate, z coordinate and E the Value/ weigt of the coordinate.
I tried this code
[x,y,z,v] = flow;
figure;
xslice = 5;
yslice = 0;
zslice = 0;
slice(x,y,z,v,xslice,yslice,zslice);
view(3);
axis([0 10 -4 4 -3 3]);
grid on;
colormap(flipud(jet(64)));
colorbar('vertical');
shading interp
From http://www.bu.edu/tech/support/research/training-consulting/online-tutorials/visualization-with-matlab/ However it didn't work because whatever I put in I get the same image out.
Can someone help me out with this? Thanks in advance!

답변 (1개)

Ben Drebing
Ben Drebing 2018년 5월 11일
The first line of that code loads some example data from MATLAB. I think that this is probably overwriting any data that you previously defined which is causing the plot to always look the same. Try removing this line:
[x,y,z,v] = flow;
and changing all the references to the variable "v" to refer to your variable "E".
  댓글 수: 1
Gabriella Tany
Gabriella Tany 2018년 5월 14일
I tried doing that also, but then I get an error saying that E has to be a 3D array and in my case x y z and E are 1000x1 double.

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

카테고리

Help CenterFile Exchange에서 Volume Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by