⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_param.m

📁 一个matlab的将军模型
💻 M
字号:
function val = get_param(p,param)

% Retrieve parameters of a polyhedron object
%
% Syntax:
%   "A = get_param(poly,p)"
%
% Description:
%   "get_param(poly,p)" returns the parameter "p" from the
%   polyhedron object "poly".
%
%   "p" is one of "'CE'","'dE'","'CI'","'dI'","'VE'","'VI'","'vtcs'"
%
%   where: 
%
%   *"'CE'" and "'dE'" correspond to the matrix equality CEx = dE
%
%   *"'CI'" and "'dI'" correspond to the matrix inequality CIx <= dI
%
%   *"'VE'" and "'VI'" are the vertices on the respective equalities and
%   inequalities 
%
%   *"'vtcs'" are the vertices of the polyhedron
%
% Example:
%   Given a polyhedron object, "poly" representing a square in the
%   x3 = 0 plane with corners at (x1,x2) pairs (2,1), (2,3), (4,3), and
%   (4,1),
%
%
%
%   "A = get_param(poly,'dI')"
%
%
%
%   results in
%
%
%
%   "A ="
%
%
%
%   "4"
%
%   "-2"
%
%   "3"
%
%   "-1"
%
%
%
%
% See Also:
%   polyhedron

val = eval(['p.' param]);
return





⌨️ 快捷键说明

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