POLYPLOT
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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Volume Visualization > Scalar Volume Data >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
