isrectangle

Check if vertices form a rectangle

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

This function takes a set of vertices defined by the vectors X and Y and returns true if they form a rectangle and false otherwise.

X and Y do not need to be sorted, but it is assumed that X(i) is paired with Y(i).

You can also call the function with one input Z, such that Z = [X(:),Y(:)].

For examples, check out the test suite for the following Cody problem:
http://www.mathworks.com/matlabcentral/cody/problems/2671-check-if-vertices-form-a-rectangle

引用

Matthew Eicholtz (2026). isrectangle (https://jp.mathworks.com/matlabcentral/fileexchange/48454-isrectangle), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersTest Scripts についてさらに検索

一般的な情報

MATLAB リリースの互換性

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

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

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