get_uindex.m
来自「内模控制器(IMC)工具箱。包括参数整定、PID控制器参数转换等」· M 代码 · 共 30 行
M
30 行
function [uindex]=get_uindex(varargin)
% function [uindex]=get_uindex(varargin)
% The fuction take the cell arrays of representing uncertainty, ie. Xpnummt,
% Xpdenmt, Xpdeadmt that appear in the same process edit window ; to specify the set
% uncertain parameters, x(1) ,x(2) , ... to be be bounded in the process edit window.
[n]=length(varargin);
[a,b,c,d]=size(varargin{1});
uindex=cell(a,b,d);
for m=1:d
for h=1:a
for k=1:b
data=[];
for i=1:n
for l=1:c
temp=imag(varargin{i}{h,k,l,m});
data=[data ; temp(:)];
end
end
data=sort(data);
for j=1:length(data)
if data(j) > 0
if isempty(uindex{h,k,m}) | ~any(data(j)==uindex{h,k,m})
uindex{h,k,m}=[uindex{h,k,m} data(j)];
end
end
end
end
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?