Code covered by the BSD License  

Highlights from
distribute

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 1.65 KB File ID: #4235

distribute

by

 

09 Dec 2003 (Updated )

Returns a vector of starting positions and a size for uniformly spaced objects.

| Watch this File

File Information
Description

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

Acknowledgements

This file inspired Segment Tool: An Interactive Gui For Segmenting Images.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us