Plot 2D/3D region

The program plots convex linear closed regions in 2D/3D.
16.7K Downloads
Updated 24 Jun 2025

View License

Editor's Note: This file was highlighted in the File Exchange Pick of the Week blog.

The program plots convex linear closed regions in 2D/3D. The region is a subset of R2 or R3 such that Ax>=b and lb<=x<=ub. It is also possible to plot points in the same plot.
(See help plotregion and help plotLinearConstraints for more documentation)

Cite As

Per Bergström (2025). Plot 2D/3D region (https://www.mathworks.com/matlabcentral/fileexchange/9261-plot-2d-3d-region), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Computational Geometry in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.1

Added a new plot-function (plotLinearConstraints) for visualizing linear constraints and some additional examples.

1.1.0.0

More examples are added.

1.0.0.0

Have done the documentation more clear.