isrectangle

Check if vertices form a rectangle
169 download
Aggiornato 13 nov 2014

Visualizza la licenza

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

Cita come

Matthew Eicholtz (2025). isrectangle (https://www.mathworks.com/matlabcentral/fileexchange/48454-isrectangle), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2014a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Test Scripts in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0