how do i save the data from ginput?
4 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Dishant Arora
2014-5-13
data = ginput(2);
x = data(:,1);
y = data(:,2);
Or simply:
[x , y] = ginput(2);
5 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!