number_of_faces.m

来自「一个matlab的将军模型」· M 代码 · 共 38 行

M
38
字号
function n = number_of_faces(con)

% Find the number of faces on the region represented by a linear
% constraint object  
%
% Syntax:
%   "n = number_of_faces(con)"
%
% Description:
%   "number_of_faces(con)" returns the number of faces on the region
%   represented by "con".  This is equivalent to the number of rows in
%   the linear inequality matrix CI used to construct the linear
%   constraint object.
%
% Examples:
%   Given the linear constraint object "con" representing a square in the
%   plane x3=0 with corners at (x1,x2) pairs (2,1), (2,3), (4,3), and
%   (4,1).
%
%
%
%     "n = number_of_faces(con)"
%
%
%
%   returns
%
%
%
%     "n = 4"
%
%
%
% See Also:
%   linearcon,poly_face

n = length(con.dI);
return

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?