How to draw a surface starting from a 3 column vector X, Y, Z with no regular grid on X, Y ?

1 view (last 30 days)
Dear matlab users,
I have a file out from a fiit element software (ANSYS) which simulats the static distorsion of a metallic plate due to its own weight.
the file gives 3 columns, X, Y, Z
The coordinates X and Y scan the plate surface according to the mesh generated by the ANSYS software. There is no specific structure which would allow to use meshgrid function or so. X and Y are set arbitrarilly.
How is it possible to plot the surface Z associated to the coordinates X,Y?
How is it possible to get an interpolation of such a surface on a regular grid so I can make some analysis with standard tools?
Many thanks for your comments
Cheers
Frederic

Accepted Answer

Frederic Cleva
Frederic Cleva on 8 Nov 2021
Hum, it seems F = scatteredInterpolant(Y,Z,dX) makes the job...
Sorry for the trouble
Cheers,
Frederic

More Answers (1)

Chris
Chris on 8 Nov 2021
Edited: Chris on 8 Nov 2021
Another useful function is griddata

Products

Community Treasure Hunt

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

Start Hunting!