plus.m

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

M
14
字号
function sum = plus(con1,con2)
% Compute the Vector sum of two linearcon object
%
% test code, derived from 'Invariant Set Toolbox' by Kerrigan
% it seems not work in some cases, 
% so I switch to point method.

v1 = vertices(con1);
v2 = vertices(con2);

v3 = v1 + v2;
sum =polyhedron(v3);
return

⌨️ 快捷键说明

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