Returns a vector of starting positions and a size for uniformly spaced objects.
2,1K téléchargements
Mise à jour 10 déc. 2003

Afficher la licence

This is a VERY simple, but very useful few-line program that calculates the starting points and size of uniformly spaced (GUI) objects. Use this function, or write your own--but you should have a distribute function if you manually create GUIs (without the development environment, which has a distribute function).


(Enter the number of objects, starting and end points, and gap size, and position your objects horizontally or vertically at objpos(1), objpos(2),..., and with a width/height of objdim.)

Citation pour cette source

Brett Shoelson (2024). distribute (https://www.mathworks.com/matlabcentral/fileexchange/4235-distribute), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version