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

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (1)

Chris
Chris il 8 Nov 2021
Modificato: Chris il 8 Nov 2021
Another useful function is griddata

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by