Import STL File into MATLAB
4 次查看(过去 30 天)
显示 更早的评论
So If I want to import an .stl file into MATLAB do I have to keep the file in a specific directory which MATLAB uses
All the examples I have seen on MATLAB website for Finite Element Analysis, they just use importGeometry(model, 'filename.stl') but none of them say that the file has to be in the default MATLAB directory or not. I tried to import a 3D CAD model in form of an .stl file but the program showed an error - "File does not exist".
Please help with the above situation.
0 个评论
回答(1 个)
Sahithi Kanumarlapudi
2019-9-24
In ‘importGeometry(model,geometryfile)’ function, parameter ‘geometryfile’ refers to the path to STL file. So you don’t need to have your STL file in the working directory.
Refer to the following link for more information.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Import 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!