distribute

Returns a vector of starting positions and a size for uniformly spaced objects.
2,1K download
Aggiornato 10 dic 2003

Visualizza la licenza

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).

USAGE:
[OBJPOS,OBJDIM] = DISTRIBUTE(NOBJECTS,STARTPOS,ENDPOS,GAP)

(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.)

Cita come

Brett Shoelson (2026). distribute (https://it.mathworks.com/matlabcentral/fileexchange/4235-distribute), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R13
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Versione Pubblicato Note della release
1.0.0.0