how to extract coordinates from a fsurf plot?

Hi. I have a surface defined as a fsurf plot. How can I extract the X,Y,Z coordinates of the points of the surface?

3 Commenti

How do you want to specify them and what information do you have? Did you keep the handle to the fsurf object? Do you want to click on it or get values programmatically?
MG
MG il 26 Mar 2021
Modificato: Walter Roberson il 9 Ago 2026 alle 19:45
You can see how the x,y and z coordinates were extracted in this posted quesstion: https://www.mathworks.com/matlabcentral/answers/783766-is-there-a-way-to-adaptively-sample-2-d-surfaces?s_tid=srchtitle
Have you tried the following?
fs=fsurf(funx,funy,funz);
X=fs.XData;
Y=fs.YData;
Z=fs.ZData;

Accedi per commentare.

Risposte (0)

Richiesto:

il 15 Mar 2019

Modificato:

il 9 Ago 2026 alle 19:45

Community Treasure Hunt

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

Start Hunting!

Translated by