Code covered by the BSD License  

Highlights from

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



Brett Shoelson (view profile)


09 Dec 2003 (Updated )

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

| Watch this File

File Information

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


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