STLA_IO is a MATLAB library which includes routines to read or write the 3D graphics information stored in an ASCII STL (stereolithography) file.
Especially if you are reading large ASCII STL files, you might want to consider the STLA_SIZE_FAST and STLA_READ_FAST routines, provided by Bill Seufzer of NASA Langley. These will run more quickly in MATLAB than the routines STLA_SIZE and STLA_READ.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
STLA_IO is available in a C++ version and a FORTRAN90 version and a MATLAB version.
IVCON, a C++ program which can convert graphics information between ASCII STL and other formats.
IVREAD, a FORTRAN90 program which can convert graphics information between ASCII STL and other formats.
STLA, a data directory which contains some examples of ASCII STL files.
STLA_DISPLAY, a MATLAB program which can read an ASCII STL file and display it on the screen.
STLA_TO_TRI_SURFACE, a MATLAB program which reads an ASCII STL file and extracts the surface mesh data as a TRI_SURFACE dataset.
TRI_SURFACE_TO_STLA, a MATLAB program which reads a TRI_SURFACE dataset and extracts the surface mesh data as an ASCII STL file.
You can go up one level to the MATLAB source codes.