Import STL file and convert to Matrix
Show older comments
Hello,
I want to measure the Hausdorff-Distance between two STL meshes. Is it possible to import the STL-Data and convert it in matrix where every point has its x,y,z-coordinate?
Thanks!
Answers (2)
Jan
on 2 Sep 2021
0 votes
What about using Matlab's STL import?
1 Comment
Marvin Rohatsch
on 5 Sep 2021
darova
on 5 Sep 2021
0 votes
2 Comments
Thomas Tsigkopoulos
on 19 Nov 2021
stlread doesn't work anymore
DGM
on 13 Jul 2025
stlread() does in fact still work, but stlread(), stlread(), stlread(), stlread(), and stlRead() also still work. The problem is that there is the one that's been built into MATLAB since R2018b, and then there are similarly-named tools from the File Exchange that everyone keeps downloading based on ancient advice and random code snippets on the forum.
The various tools don't all have the same functionality, and they don't all return the same type of output data. Either use the tool your code is written for, or write your code to suit the tool you're using.
Categories
Find more on STL (STereoLithography) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!