distribute

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

現在この提出コンテンツをフォロー中です。

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://jp.mathworks.com/matlabcentral/fileexchange/4235-distribute), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: SegmentTool: An Interactive GUI for Segmenting Images

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0