how to plot 4 dimensional data?
显示 更早的评论
Hi
I want to plot my data in 4D map. data matrix is of 5000 by 4. each coloumn represent 1 quantity or variable. sample of data is given below.
z=
[1.000000000000000 1.100000000000000 2.300000000000000 16.000000000000000
1.000000000000000 1.100000000000000 2.400000000000000 16.000000000000000
1.000000000000000 1.100000000000000 2.500000000000000 15.000000000000000
1.000000000000000 1.100000000000000 2.600000000000000 15.000000000000000
1.000000000000000 1.100000000000000 2.700000000000000 15.000000000000000
1.000000000000000 1.100000000000000 3.800000000000000 15.000000000000000
1.000000000000000 1.100000000000000 3.900000000000000 15.000000000000000
1.000000000000000 1.100000000000000 4.000000000000000 15.000000000000000
1.000000000000000 1.100000000000000 4.100000000000000 15.000000000000000
1.000000000000000 1.100000000000000 4.200000000000000 15.000000000000000]
how to effeciently plot the given data in more easy visualiztion way. Please help me i will be highly thankful to you
with best regards
Mudasir.
4 个评论
Walter Roberson
2018-11-21
can that be reshaped into a cuboid of data with regular 3d coordinates and one resulting value ?
Mudasir Ahmed
2018-11-21
Walter Roberson
2018-11-21
Attach your data .
Mudasir Ahmed
2018-11-22
采纳的回答
更多回答(2 个)
madhan ravi
2018-11-21
编辑:madhan ravi
2018-11-21
0 个投票
Read about isosurface.
Bartlomiej Mroczek
2020-12-26
0 个投票
Hello,
Anyone have any idea or experience?
I would like to get a spatial plot for the function f, but it is 4 dimensional.
How can this be done?
Script:
V2 = zeros(21,21); % zero value irrelevant
V4 = zeros(21,21); % zero value irrelevant
V6 = zeros(21,21); % zero value irrelevant
f = @(V1, V2, V3, V4, V5, V6) V1.*(10*V1-10*V2+20*V3-21*V4+30*V5-31*V6) - V2.*(10*V1-11*V2+22*V3-21*V4+30*V5-31*V6);
[V1, V3, V5] = meshgrid(0.9:0.01:1.1, 0.9:0.01:1.1, 0.9:0.01:1.1);
Z = f(V1, V3, V5, V2, V4, V6);
5 个评论
Walter Roberson
2020-12-26
Typical ways to plot multidimensional data include:
isosurface
slice
volumeViewer
vol3d v2 (from File Exchange)
projections along different views
pointsize = 20; scatter3(data(:,1), data(:,2), data(:,3), pointsize, data(:,4)) -- that is, encoding the resultant dimension as color
If you had another dimension then you could encode it as point size.
Bartlomiej Mroczek
2020-12-26
Thanx.
- isosurface - it works
- slice - i have a prob with error:
h = slice(V_n1, V_n3, V_n5, v, xs, ys, zs); xs = 1;
%Attempt to execute SCRIPT grid as a function:
%/Users/bartlomiejmroczek/Documents/MATLAB/grid.m
%Error in slice (line 141)
% grid(cax,'on');
ys = 1;
zs = 1;
colormap hsv
why's that ?
Walter Roberson
2020-12-26
What shows up for
which -all grid
You have some third-party file that is interfering.
Bartlomiej Mroczek
2020-12-26
actually the file connected, weird thanx
Walter Roberson
2020-12-27
You need to delete or rename /Users/bartlomiejmroczek/Documents/MATLAB/grid.m as it is interfering with using MATLAB's grid() function .
类别
在 帮助中心 和 File Exchange 中查找有关 Scalar Volume Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!