Error when importing STL file into Matlab
Show older comments
Hi,
When I try to import my STL file into MATLAB I get en error message. What am I doing wrong?
figure
gm = importGeometry('Torus.stl');
pdegplot(gm)
Error: Check for missing argument or incorrect argument data type in call to function 'importGeometry'.
Accepted Answer
More Answers (1)
Sulaymon Eshkabilov
on 21 Feb 2022
You are missing one important part in your command, see e.g.:
pdem = createpde(); % Missing
GM = importGeometry(pdem,'BEAM.stl'); % See how to add the missing piece
pdegplot(gm, 'FaceLabels','on', 'FaceAlpha',0.75)
1 Comment
Konvictus177
on 21 Feb 2022
Edited: Konvictus177
on 21 Feb 2022
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!