Example - Dynamic GUI Layout (Scripts) Publisher's description
from Jiro Doke
This example demonstrates how you can build a GUI with dynamic positioning of UI components (no distortions)
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.
Resizing the figure window, and notice the size of the UI components.
This was a File Exchange Pick of the Week:
System Requirements:MATLAB 7.5 (R2007b)
Program Release Status: New Release
Program Install Support: Install and Uninstall