please some one help me import the give txt file format as table

8 visualizaciones (últimos 30 días)
Ayyachamy
Ayyachamy el 28 de Oct. de 2014
Editada: Walter Roberson el 8 de Oct. de 2025 a las 1:17
solid OBJECT
facet normal -0 -0 -1
outer loop
vertex 10 -10 0
vertex 0 -10 0
vertex 0 0 0
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 10 0 0
vertex 10 -10 0
vertex 0 0 0
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 0 -10 20
vertex 10 0 20
vertex 0 0 20
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 0 -10 20
vertex 10 -10 20
vertex 10 0 20
endloop
endfacet
endsolid OBJECT
  1 comentario
Geoff Hayes
Geoff Hayes el 28 de Oct. de 2014
Your text file seems to be of STL format. Is this the case? If so, then check the File Exchange for an STL (text) reader.

Iniciar sesión para comentar.

Respuestas (1)

DGM
DGM el 7 de Oct. de 2025 a las 23:36
In R2018b or newer, just use stlread().
I don't remember what the best STLA decoder would have been in 2014, but nobody has a time machine anyway.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by