📄 number_of_faces.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -