You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). POLYPLOT (https://www.mathworks.com/matlabcentral/fileexchange/69438-polyplot), MATLAB Central File Exchange. Retrieved .
General Information
- Version 3.0.2 (1.62 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
