plot.m
来自「一个matlab的将军模型」· M 代码 · 共 28 行
M
28 行
function plot(con,color)
% Plot a linear constraint object
%
% Syntax:
% "plot(con)"
%
% "plot(con,color)"
%
% Description:
% "plot(con)" plots the linear constraint object "con" in blue.
% "plot(con,color)" plots "con" in the color specified in the rgb row
% vector "color=[r g b]".
%
% Note:
% "@linearcon/plot" first converts the linear constraint object to a
% polyhedron object, and then uses "@polyhedron/plot" to create the
% figure.
%
% See Also:
% linearcon,plot
if nargin == 1
color = [0 0 1];
end
plot(polyhedron(con),color)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?