POLYPLOT

The function POLYPLOT plots polyhedron in 2D of the relation Ax=b. Please use function DETCHECK.m for better results. See Description.
38 Downloads
Updated 20 Nov 2018

View License

The function POLYPLOT plots polyhedron in 2D of the relation Ax=b. Use the function DETCHECK.m for better results and to avoid problems with singular submatrices.

https://de.mathworks.com/matlabcentral/fileexchange/69463-detcheck

Usage: POLYPLOT(A,b)

Input:
A - matrix.
b - vector.

For example, given are four equations of lines as follows.
1x + 0y = 0
1x + 0y = 1
0x + 1y = 0
0x + 1y = 1

Here A=[1 0; 1 0; 0 1; 0 1] and B=[0 1 0 1]'
The function then finds out the points of intersection of the equations and plots a polygon.

Author: Shahariar Hassan (Technical University of Kaiserslautern)
Date: 14.11.2018

Cite As

Shahariar Hassan (2025). POLYPLOT (https://www.mathworks.com/matlabcentral/fileexchange/69438-polyplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
3.0.2

More details regarding the function added.

3.0.1

Added bounds to the axis.

3.0.0

Bug fix for random axis values.

2.0.0

This version solves the submatrix singularity problem.

1.0.0