end.m

来自「国外专家做的求解LMI鲁棒控制的工具箱,可以相对高效的解决LMI问题」· M 代码 · 共 16 行

M
16
字号
function index = end(X,position,numindices)
%end               Overloaded

% Author Johan L鰂berg 
% $Id: end.m,v 1.1 2004/06/17 08:40:04 johanl Exp $   

  switch numindices
   case 1
    % User has written someting like X(end)    
    index = length(X);
   case 2
    index = length(X);
   otherwise
    error('Indexation dimension cannot exceed 2');
  end
  

⌨️ 快捷键说明

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