how to obtain volume data from X,Y,Z,c data to use slice() function?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Philippe Corner
il 18 Gen 2020
Commentato: Walter Roberson
il 18 Gen 2020
If we have X,Y,Z,v data, how can I manage to get Volume data form in order to use slice function?
please check data (data.mat)
first column: x coordinate
second column: y coordinate
third column: z coordinate
fourth column: data
2 Commenti
Risposta accettata
Walter Roberson
il 18 Gen 2020
Modificato: Walter Roberson
il 18 Gen 2020
N = 50;
xvec = linspace(592447.8, 592463.9, N);
yvec = linspace(507793.3, 507837.4, N);
zvec = linspace(2553.6, 2559.9, N);
[xq, yq, zq] = meshgrid(xvec, yvec, zvec);
load('data.mat')
x = data(:,1);
y = data(:,2);
z = data(:,3);
c = data(:,4);
F = scatteredInterpolant(x,y,z,c);
vq = F(X, Y, Z);
xslice = something in the x range;
yslice = something in the y range;
zslice = something in the z range;
slice(xq, yq, zq, vq, xslice, yslice, zslice)
2 Commenti
Walter Roberson
il 18 Gen 2020
Sorry, yes, I renamed variables as I posted and missed renaming that.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!