フィルターのクリア

how do i save the data from ginput?

1 回表示 (過去 30 日間)
Franchesca
Franchesca 2014 年 5 月 13 日
コメント済み: Dishant Arora 2014 年 5 月 13 日
This is my script:
% --- Executes on button press in pushbutton5. select finish line function pushbutton5_Callback(hObject, eventdata, handles)
data=[] data(1)=ginput(1); x=data(1){:,1} y=data(1){:,2}
i want to save the x, y points from the ginput, how would i do this?

回答 (1 件)

Dishant Arora
Dishant Arora 2014 年 5 月 13 日
data = ginput(2);
x = data(:,1);
y = data(:,2);
Or simply:
[x , y] = ginput(2);
  5 件のコメント
Franchesca
Franchesca 2014 年 5 月 13 日
okay so how would I refer to it later on?
Dishant Arora
Dishant Arora 2014 年 5 月 13 日
data = handles.data;

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

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by