too many outputs for ginput - documentation error?

3 visualizaciones (últimos 30 días)
Jim Hokanson
Jim Hokanson el 21 de Dic. de 2024
Comentada: Jim Hokanson el 21 de Dic. de 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);

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Dic. de 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.)
  1 comentario
Jim Hokanson
Jim Hokanson el 21 de Dic. de 2024
Great. My brain has been a bit scrambled lately. Glad I wasn't missing something. Seems like something they could fix with the documentation going forward. Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Exploration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by