What is the better way to plot non consistent size 4D data ?

Hi everyone,
I have a three vectors X (size : 1x20), Y(size :1x21) and Z( size: 1x202), and an array W (size: 20x21x202) which yields from a computation from the previous three vectors. I am wondering which is the best way to plot this data in a four dimensionnal plot. The best representation that i have right now is creating a video, but i don't want it !!!
With advance thanks !!

 Accepted Answer

Try slice
clc,clear
load DATA.mat
[X1,Y1,Z1] = meshgrid(X,Y,Z);
W1 = permute(W,[2 1 3]);
xs = [min(X)+100 max(X)-100];
ys = [min(Y)+100 max(Y)-100];
zs = [min(Z)+1000 max(Z)-1000];
h = slice(X1,Y1,Z1,W1,xs,ys,zs);
set(h,'edgecolor','none')
axis vis3d

More Answers (0)

Products

Release

R2019b

Community Treasure Hunt

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

Start Hunting!