distribute

版本 1.0.0.0 (1.6 KB) 作者: Brett Shoelson
Returns a vector of starting positions and a size for uniformly spaced objects.
2.1K 次下载
更新时间 2003/12/10

查看许可证

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

引用格式

Brett Shoelson (2026). distribute (https://ww2.mathworks.cn/matlabcentral/fileexchange/4235-distribute), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
1.0.0.0