4D interpolation plot with matlab of scattered data

4 Ansichten (letzte 30 Tage)
Samuel  Ponce
Samuel Ponce am 10 Mär. 2016
Dear Matlab community,
I have a set of data with a value at some x,y,z coordinates. However, the coordinates are not evenly spaced. I would like to interpolate the data and have a 3D interpolated plot where the color is the interpolated value at each x,y,z coordinates (not the value of z).
Also I should mention that my data are confined in space and I only want to interpolate between points that are close. I have multiple sheet-like structures and I do not want interpolation between the sheets. I would therefore need a distance between points criteria I guess.
My problem can be seen with this MATLAB test program
x = rand(100,1)*16 - 8;
y = rand(100,1)*16 - 8;
z = rand(100,1)*16 - 8;
d = rand(100,1)*16 - 8;
The scatter plot of that works very well
scatter3(x,y,z,5,d);
colormap(jet);
colorbar;
I would like to have an nice surface with color of that. Of course the interpolation of the above will be very bad since it is random points and color(value) but for my case it has more meaning.
I shall emphasize the localized nature of my problem (see picture below using scatter3).
Using a double scatteredInterpolant (to interpolate on z and d) on the same data as the figure above gives me the following picture
which is not satisfactory.
Thank you,
Samuel

Antworten (1)

Christian Nørgård
Christian Nørgård am 5 Jun. 2017
Dear Samuel, I am struggling with a very similar problem. Did you manage to come up with a solution? If so, i am very interested in having a look on it.
Best regards Christian

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by