Import and plot stl file in AppDesigner

18 ビュー (過去 30 日間)
Laphidil Oppong Twumasi
Laphidil Oppong Twumasi 2021 年 5 月 14 日
回答済み: Cris LaPierre 2021 年 5 月 14 日
How do I import and plot a STL file? I tried importing a function I already had but it wasn't successful maybe because I didn't get enough info on how to. So i tried another path but to no avail.

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 5 月 14 日
If you are using stlread to load the stl file, I suggest using one of the corresponding plot functions (trimesh, triplot, or trisurf).
See the Displaying Graphics in App Designer for more details on how different plotting functions are handled. For example
Specify Axes as Name-Value Argument
Some graphics functions require the target axes object to be specified as a name-value argument. For example, when you call the imshow and triplot functions, specify the axes object to display on using the 'Parent' name-value argument. This code displays an image on an existing set of axes on your canvas:
ax = axes;
data = stlread('BracketWithHole.stl');
trimesh(data,'Parent',ax,'EdgeColor','k')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by