ginput with snap to grid ?

How can I ginput with snap to grid , want to choose integers, not decimal number.

1 comentario

Franklin Fabián Lucero Luna
Franklin Fabián Lucero Luna el 9 de Mayo de 2017
You can open ginput function and use the floor function, so the current point will always be an integer.
If you want a snap to grid I recomend you a code I just upload:
Hope you find it useful.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Exploration en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by