Activate "View Layout Grid" and "Snap to Layout Grid" programmatically

조회 수: 8 (최근 30일)
Udo Kessler
Udo Kessler 2017년 1월 15일
댓글: Udo Kessler 2017년 1월 19일
Hey,
is there any way to activate the Functions View Layout Grid and Snap to Grid (included in the standard Tools-Menu of Matlab figures)? At least it ist possible to activate some other things like "Align", or things from the standard Toolbar like pan, zoom, plotedit - so there maybe is a way, to activate (all?) the other Functions and Helpers programmatically?
Thanks and greetings

채택된 답변

Wilson A N
Wilson A N 2017년 1월 19일
You can use the following command to enable the snap to grid option
snaptogrid(figureHandle,'toggleview')
For more options you can just check the snaptogrid.m file.
  댓글 수: 1
Udo Kessler
Udo Kessler 2017년 1월 19일
Hi,
thank you, it works fine! I can not find this command in the Matlab Help, can you tell why?
Greetings

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by