while using stl file i am getting Unrecognized function or variable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
the file 'Aneurysm Model has done in CAD and its stl file but the out put is showing Unrecognized function or variable
smodel = createpde('structural','static-solid');
importGeometry(smodel,'Aneurysm Model.stl');
pdegplot(smodel,'FaceLabels','on','FaceAlpha', 0.5);
2 Kommentare
Antworten (1)
Brahmadev
am 7 Sep. 2023
Hi Sasikala,
The "Unable to open file" error is most often caused by the following reasons:
- Incorrect path specified: Double-check that the file path you provided is correct and points to the location of the STL file. Instead of providing a relative file path, try specifying the full file path to the STL file. For example, use something like “C:\path\to\your\file.stl” on Windows or “/path/to/your/file.stl” on macOS/Linux.
- Incorrect permissions: Ensure that you have the necessary permissions to access the file. If the STL file is located in a restricted directory, you may need to adjust the file permissions or move the file to a location accessible by MATLAB.
You can run
exist('AneursymModel-2.stl','file')
for checking if the file is in the current working directory or on MATLAB path searched by MATLAB.
Hope this helps!
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!