Plotting inequalities (ineqplot)

Plotting inequalities, simple and easy
804.0 次下载
更新时间 2016/5/8

查看许可证

Plotting inequalities, simple and easy.
Syntax:

h = ineqplot(I, R, c);

Input arguments
I - Inequality as string, i.e. 'x+y>10'
R - Vector of four components defined by: [xmin, xmax, ymin, ymax],
if two components are passed: [min, max], the defined region
will be a square and xmin=ymin=min, xmax=ymax=max.
c - A three-element RGB vector, or one of the MATLAB
predefined names, specifying the plot color.

Output arguments
h - returns the handle of the scattergroup
object created.

Examples:
>> ineqplot('x.^2+y.^2<10',[-5 5], 'r');
>> h = ineqplot('y<x+3',[0 10 -5 5]);
>> set(h,'MarkerFaceColor','r'); % Change color

引用格式

Jorge De Los Santos (2024). Plotting inequalities (ineqplot) (https://www.mathworks.com/matlabcentral/fileexchange/56996-plotting-inequalities-ineqplot), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0