too many outputs for ginput - documentation error?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jim Hokanson
am 21 Dez. 2024
Kommentiert: Jim Hokanson
am 21 Dez. 2024
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 21 Dez. 2024
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.)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!