Get information in MATLAB about a STL file. Use it as,
[F, V, N] = read_stl_file('myfile.stl');
where F are "faces", V are "vertices" and N are "normals".
The object can be plotted with,
p = patch('Faces', F, 'Vertices', V, 'FaceColor', 'red', 'EdgeColor', 'none');
Cite As
Eugenio (2025). read_stl_file(name) (https://uk.mathworks.com/matlabcentral/fileexchange/53736-read_stl_file-name), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
              Created with
              R2010a
            
            
              Compatible with any release
            
          Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > STL (STereoLithography) >
      Find more on STL (STereoLithography) in Help Center and MATLAB Answers
    
  Tags
Acknowledgements
Inspired: STL geometry cleanup
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
