how to plot point in GUI - beginner matlab

9 ビュー (過去 30 日間)
aixat amxan
aixat amxan 2015 年 6 月 20 日
コメント済み: aixat amxan 2015 年 6 月 20 日
i have 3 variable to plot point in axes. 1st variable is Latitude for X, 2nd variable is Longitude for Y and 3rd variable is Safe Point for Z when the value is 1 will display green point and value is 0 display red point.
this my coding to load data from uitable5 where column 1 is for X, column 2 is for Y and column 3 is for Z;
table=get(handles.uitable5,'Data'); X=table(:,1); Y=table(:,2); Z=table(:,3);
how i can plot points with my data?

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 20 日
pointsize = 20;
scatter(X, Y, pointsize, Z);
colormap([1 0 0; 0 1 0]); %red, green
  1 件のコメント
aixat amxan
aixat amxan 2015 年 6 月 20 日
thanks sir. but why the value in axis is not same as data load from uitable5?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by