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

7 ビュー (過去 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 Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by