How to read a STL file with Matlab?
Show older comments
Dear all, I would like to convert a STL file with matlab. I use stlread but i can't read the file. Thank you for your help.
Best regards,
3 Comments
Walter Roberson
on 2 Oct 2017
Is it a binary or ASCII file?
What problem do you observe when you try to use stlread() ?
Ababacar Thiam
on 4 Oct 2017
DGM
on 26 Jun 2025
As of R2018b or newer, MATLAB has a built-in reader:
stlread()
For a more comprehensive list of alternative options, see this post. This covers the capabilities of 10 different readers found on the FEX. There are probably a few I missed, but these are the ones that came up in search results.
https://www.mathworks.com/matlabcentral/answers/400365-reading-and-plotting-stl-file#comment_3336289
My recommendation is to either use the built-in reader, or use #51200 (stlTools). The above link explains why.
Accepted Answer
More Answers (0)
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!