STL file from 3D array

5 Ansichten (letzte 30 Tage)
Oguzhan M
Oguzhan M am 13 Dez. 2018
Bearbeitet: DGM am 15 Jul. 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

Antworten (1)

madhan ravi
madhan ravi am 13 Dez. 2018
  2 Kommentare
Oguzhan M
Oguzhan M am 14 Dez. 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 am 15 Jul. 2025
Bearbeitet: DGM am 15 Jul. 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:

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by