Need help in 3D plot using MATLAB (X,Y,Z,V) -


i need ask in plotting 3d volume in matlab. data set includes x, y, z coordinate , corresponding intensity value, v.

i using pcolor (x,y,v) , shading interp while doing 2d images got stuck when create 3d images. have tried scatter3, smooth3 , slice seems not fit function need.

my goal plot 3d grid corresponding intensity value per coordinate , apply shading interp between these points.

i new in 3d plotting , appreciate in achieving goal. thank much!

here example of images trying create link http://www.ndt.net/article/ndtce03/papers/v073/fig11.jpg link http://www.bam.de/de/_pic_u_film/web/kompetenzen/abteilung_8/fg82/fg82_fotos/fg82_fusion_pk_270.jpg

i have solution first example, in show 3 cross-sections of volume data. solution can plot several pcolor different orientations, in 1 same 3d figure.

first, need data different slices. had when did pcolor(x,y,v) plot cross section in 2d, x, y , v 2 dimensional matrices. need create matrix z z-position of slice (e.g. z = zeros(size(x)) + z0). use command surface(x,y,z,v) plot cross section image in 3d, x,y,z positions, , v color (value of function).

repeat procedure other slices, using appropriate x,y,z,v matrices each slice. slices oriented on other axes have define x,y,z accordingly. remember use "hold on" after first surface command, slices plotted.

example:

surface(x1,y1,z1,v1); shading interp; hold on surface(x2,y2,z2,v2); shading interp; surface(x3,y3,z3,v3); shading interp;  colormap(jet(2048)); caxis([0,3]); % color axis colormap , scaling  axis equal; xlabel('x'); ylabel('y'); zlabel('z') % x,y,z scaling , label 

result figure here:

enter image description here


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -