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

댓글 수: 1

Franklin Fabián Lucero Luna
Franklin Fabián Lucero Luna 2017년 5월 9일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Exploration에 대해 자세히 알아보기

질문:

2017년 4월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by