Code covered by the BSD License  

Highlights from
Plot 2D/3D region

image thumbnail
from Plot 2D/3D region by Per Bergström
The program plots convex closed regions in 2D/3D.

example7.m
close all

A=[-sqrt(6)/2,-3*sqrt(2)/2,-sqrt(3)/2;sqrt(6),0,-sqrt(3)/2;-sqrt(6)/2,3*sqrt(2)/2,-sqrt(3)/2;0,0,1];
b=[-sqrt(6)/2;-sqrt(6)/2;-sqrt(6)/2;0];

lb=[-0.3,-999,0];
ub=[0.3,999,0.9];

plotregion(A,b,lb,ub,[0.1,0.9,0.0]);

axis equal

Contact us at files@mathworks.com