Example - Dynamic GUI Layout

バージョン 1.1.0.1 (1.94 KB) 作成者: Jiro Doke
This example shows how you can build a GUI with dynamic UI component positioning
ダウンロード: 15.2K
更新 2016/9/1

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

This example demonstrates how you can build a GUI with dynamic positioning of UI components (no distortions).
It is a simple GUI with an axis, slider, and a push button. The slider changes the coefficient in the equation:

y = sin(C*x) + cos((10-C)*x)

And it plots the equation. The push button resets the coefficient to 4.

The figure has a ResizeFcn defined so that every time the figure is resized, it re-positions the components. It keeps the size of the push button the same, and the slider and the axis fill the rest of the screen.

Try:
Resizing the figure window, and notice the size of the UI components.

This was a File Exchange Pick of the Week:
http://blogs.mathworks.com/pick/2008/02/15/gui-layout-part-1/

引用

Jiro Doke (2024). Example - Dynamic GUI Layout (https://www.mathworks.com/matlabcentral/fileexchange/18769-example-dynamic-gui-layout), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.1

Updated license

1.1.0.0

Copyright update.

1.0.0.0