STL file import to MATLAB

19 views (last 30 days)
Kim Tae Kyeong
Kim Tae Kyeong on 23 May 2021
Answered: DGM on 13 Jul 2025
I was trying to import stl file to Matlab 2020b, and found this cmd as below
figure
gm = importGeometry('Torus.stl');
pdegplot(gm)
From this, i am getting error for importGeometry as it is not valid function/variable.
It is not able to find the importGeomtry function.. How do you fix this??

Accepted Answer

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 24 May 2021
Hi,
Here is a nice discussion on this issue.
https://www.mathworks.com/matlabcentral/answers/647913-import-file-stl-parameters?s_tid=answers_rc1-2_p2_MLT

More Answers (1)

DGM
DGM on 13 Jul 2025
You don't have PDE toolbox.
If all you need is to import the STL data, you don't need those tools.

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!