resize_elements (DEMO)
Version 1.0.0 (2.7 KB) by
Nedim Gökhan Aydin
This simple script explains and demostrates implementation of a resizing object that can change the position of elements by cursor click.
This demo function shows an example implementation of element reshaping following a slider object. The premise is simple: when the slider object is clicked and the cursor is moved, selected elements on the figure will change their size following the slider position. Currently it is not easily possible to do an "Press and Hold" mechanic for this operation, therefore a toggle button system will be used.
The example here contains the following layout:
--------------
| b | T1: Table 1 \
| T1 b | T2: Table 2 -> Stacked on top of each other.
| b | a: A slider separating tables 1 and 2.
|aaaab T3 |
| b | T3: Table 3 -> A single, larger table.
| T2 b | b: A slider separating tables 1&2 with table 3.
| b |
--------------
Here, changing the position of "a" will resize T1 and T2 vertically, and changing the position of "b" will resize "a", T1, T2 and T3 horizontally.
There are explanations for each step included in the script. Feel free to contribute/use any part. :)
Cite As
Nedim Gökhan Aydin (2026). resize_elements (DEMO) (https://uk.mathworks.com/matlabcentral/fileexchange/183383-resize_elements-demo), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2025a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
