Z must be matrix, how to determine size of reshape

17 vues (au cours des 30 derniers jours)
Naftalie Rianty
Naftalie Rianty le 22 Juil 2019
I have this x,y,z coordinates How to determine the size for reshape and make the surface of the coordinates? Thanks
  4 commentaires
Adam Danz
Adam Danz le 22 Juil 2019
Is there supposed to be an attachment or embedded image?
Jan
Jan le 23 Juil 2019
Please elaborate the meaning of "I have this x,y,z coordinates".

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 23 Juil 2019
If they're in a grid in an N-by-3 array, extract them first
x = xyz(:, 1);
y = xyz(:, 2);
z = xyz(:, 3);
Then try
surf(x, y, z);
If you don't have a regular grid, use scatteredInterpolant() to get one.

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by