STL file from 3D array

6 vues (au cours des 30 derniers jours)
Oguzhan M
Oguzhan M le 13 Déc 2018
Modifié(e) : DGM le 15 Juil 2025
Hi everyone,
I've got a 3D array which is a product of 3 matrices ( svds function is used 3DARRAY= U*E*V' ). Now, I need to convert that array into a somewhow CAD or Mesh readable file (like a surface). The best file I can think of STL but I couldnt find a way to convert. Any thoughts?
Best,
Oguzhan

Réponses (1)

madhan ravi
madhan ravi le 13 Déc 2018
  2 commentaires
Oguzhan M
Oguzhan M le 14 Déc 2018
Thanks for the answer, but this method, I think, is only for coloumn vectors, which are basically xy or xyz coordinates. In my case, since svds is applied, the array consists of many rows and coloumns (gridded xy and corresponding z which looks sth like 880x1440).
Thanks,
Oguzhan
DGM
DGM le 15 Juil 2025
Modifié(e) : DGM le 15 Juil 2025
If the data can be plotted with surf(), you can either use surf2stl() from the FEX, or you can use surf(), surf2patch(), and stlwrite(). The first part of this example shows both ways:

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by