I have an app, which i am devloping using appdesigner, I am trying to get x,y locations from a current image with ginput, however ginput is slow and dosent work seamlessly as it runs in the script
1 回表示 (過去 30 日間)
古いコメントを表示
My main call is app, in the current window i defined a panel.
Here i call geoaxes as shown below:
gx=geoaxes(app.Panel_3)
geoplot(gx,lat1,long1,'-r')%this draws a direct line
hold("on")
app.Panel_3.HandleVisibility = 'callback'
[x,y=ginput(2)
app.Panel_3.HandleVisibility = 'off'
geoplot(gx,x,y,'-r')#draws an additional line as per user input
When the app opens, i can see that the cursor comes up but dosent go away after 2 clicks as expected. Is there something wrong with the way i am calling ginput?
Also, i am using MATLAB 2020b
Regards
Kunal
0 件のコメント
回答 (1 件)
Sahithi Kanumarlapudi
2021 年 1 月 28 日
Hi,
There is nothing wrong with the way you are using 'ginput'. The only mistake in the snippet you have provided is that there is a missing ']' in the below line which might have been a tying error
[x,y=ginput(2) %error
[x,y]=ginput(2) %right syntax
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!