3d point cloud in a UIAxes element in app designer

15 ビュー (過去 30 日間)
Adam Wathieu
Adam Wathieu 2019 年 6 月 20 日
コメント済み: Adam Wathieu 2019 年 6 月 20 日
Hello,
As part of developing a larger app, I am attempting to have a user input an x value, y value, and z value into an 'edit field' in app designer. Then they would hit a button like 'update', and then a 3d graph would show the graph with the plotted point. Something like this:
Ultimately I would like to create a UIAxes that displays a 3d points cloud. Is 3d plotting available in app designer?
Any help is appreciated. Thanks.

採用された回答

Adam Danz
Adam Danz 2019 年 6 月 20 日
編集済み: Adam Danz 2019 年 6 月 20 日
You can use plot3() or scatter3() .
function ButtonPushed(app, event)
x = 1:10;
y = 1:10;
z = rand(1,10);
scatter3(app.UIAxes,x,y,z)
grid(app.UIAxes,'on')
end
  1 件のコメント
Adam Wathieu
Adam Wathieu 2019 年 6 月 20 日
Works great. Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by