plot_mapping.m
来自「一个matlab的将军模型」· M 代码 · 共 30 行
M
30 行
function plot_mapping(mapping)
% Plot the given 2-D/3-D `mapping` set.
%
% Syntax:
% "plot_mapping(mapping)"
%
% Description:
% Plot the "linearcon" object representing the polytopes in a `mapping`
% set. A `mapping` set is the set that is computed by intersecting the
% `flow pipe` segments with the faces of an invariant polytope. The input
% variable "mapping" is an one dimensional cell array with the same number
% of elements as the number of the invariant faces. "mapping{k}" containts
% the mapping polytopes on the "k"-th face of the invariant.
%
% Note:
% This routine only works for 2-D or 3-D mapping sets. For 2-D mapping
% sets, the boundary between two polytopes will not be visible if the
% polytopes being plot are lines.
%
% See Also:
% piha,iauto_part,compute_mapping
for k = 1:length(mapping)
for l = 1:length(mapping{k})
plot(mapping{k}{l},[1 1 0])
end
end
return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?