Import STL File into MATLAB

조회 수: 4 (최근 30일)
Abhishek Jethi
Abhishek Jethi 2019년 9월 19일
댓글: Abhishek Jethi 2019년 9월 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.

답변 (1개)

Sahithi Kanumarlapudi
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.
  댓글 수: 1
Abhishek Jethi
Abhishek Jethi 2019년 9월 30일
Hello Sahithi,
Thanks for the answer. It helped me and I am able to import the CAD model in the code.
Looking forward to get cleared upon some more queries.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by