too many outputs for ginput - documentation error?
21 views (last 30 days)
Show older comments
Jim Hokanson
on 21 Dec 2024 at 21:05
Commented: Jim Hokanson
on 21 Dec 2024 at 22:08
I would like to get only the x-coordinates for ginput. I was surprised to discover that ginput returns X and Y coordinates when only one output is requested. This doesn't seem to be documented behavior. Am I missing something?
XY = ginput(2);
[X,Y] = ginput(2);
0 Comments
Accepted Answer
Walter Roberson
on 21 Dec 2024 at 21:18
You are not missing anything. The behaviour of returning both X and Y together in one output is undocumented .
(It might perhaps have been documented long long ago; it is not documented now.)
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!