Main Content

imp2exp

Convert implicit linear relationship to explicit input-output relation

描述

例子

b= imp2exp(一种,,,,yidx,,,,UIDXtransforms a linear constraint between variablesyandof the forma(:,[yidx; uidx])*[y; u] = 0进入an explicit input/output relationshipy = b*u。向量yidxandUIDXrefer to the columns (inputs) of一种如明确关系所引用的b

b= imp2exp(一种,,,,yidx,,,,UIDX,“ min”)eliminates extra states to obtain a modelb与尽可能多的州一种。使用此语法一种(:,yidx)has a proper inverse. This option is ignored for sparse models because it typically destroys sparsity. ForSS,,,,Genssand你SS楷模,bis returned in implicit form by default. UseisproperorSS(sys,'explicit')to extract an explicit model if desired.

例子

全部收缩

考虑4个变量之间的两个不确定的电动机/发电机约束 [[ v 一世 t w 这是给予的 ,,,,namely [[ 1 - r 0 - k 0 - k 1 0 这是给予的 * [[ v 一世 t w 这是给予的 = 0 。找到不确定的2 by-2矩阵b以便 [[ v t 这是给予的 = b * [[ w 一世 这是给予的

r=你real('r',,,,1,,,,'百分比',,,,[[-1040]); K = ureal('K'2 e - 3'百分比',,,,[[-30 30]); A = [1 -R 0 -K;0 -K 1 0]; Yidx = [1 3]; Uidx = [4 2]; B = imp2exp(A,Yidx,Uidx)
B =不确定的矩阵,带有2行和2列。不确定性包括以下块:k:不确定的真实,名义= 0.002,可变性= [-30,30]%,2个发生r:不确定的真实,名义= 1,可变性= [-10,40],1个事件键入“ b.nominalvalue”,以查看名义值,“ get(b)”查看所有属性和“ b. b. unclandity”以与不确定元素相互作用。

考虑控制器的标准单环反馈连接C和不确定的植物p,由方程式描述e = r-y;u = ce;F = D+U;Y = PF

p = tf([1],[1 0]);c = tf([2*.707*1 1^2],[1 0]);a = [1 -1 0 0 0 -1; 0 -c 1 0 0 0; 0 0 -1 -1 1 0; 0 0 0 0 0 0 -p 1];outputIndex = [6; 3; 2; 5];% [y;u;e;f]一世nputIndex = [1;4];%[r; d]sys = imp2exp(a,outputIndex,inputIndex);sys.inputname = {'r';'D'};sys.outputname = {'y';'U';'e';'F'};
杆(系统)
ans =16×1复合物-0。7070 + 0.7072i -0.7070 - 0.7072i -0.7070 + 0.7072i -0.7070 - 0.7072i -0.7070 + 0.7072i -0.7070 - 0.7072i -0.7070 + 0.7072i -0.7070 - 0.7072i -0.7070 + 0.7072i -0.7070 - 0.7072i ⋮
stepplot(Sys)

图包含8个轴对象。轴对象1带有以下标题:R包含类型行的对象。该对象代表系统。轴对象2包含类型行的对象。该对象代表系统。轴对象3包含类型行的对象。该对象代表系统。轴对象4包含类型行的对象。该对象代表系统。轴对象5带有:D包含类型行的对象。 This object represents Sys. Axes object 6 contains an object of type line. This object represents Sys. Axes object 7 contains an object of type line. This object represents Sys. Axes object 8 contains an object of type line. This object represents Sys.

输入参数

全部收缩

隐式系统,指定为静态或动态输入/输出模型。一种可:

  • 数字LTI模型,例如TF,,,,zpk,,,,SS, 或者FRD目的

  • 一种n uncertain model such asUMAT(Robust Control Toolbox),,,,你SS(Robust Control Toolbox), 或者UFRD(Robust Control Toolbox)目的

the number of rows in model一种must equal the length of the index vectoryidx

将模型通道划分为输出信号的索引,指定为向量。索引向量yidxandUIDX指定如何分区一种进入yand信号分别。

如果[yidx,uidx]不包括所有输入一种,,,,imp2exp排除失踪y输出模型的通道b。在这种情况下,imp2expretains only a subset双,:)的输出/行b并且不影响显式模型bis computed.

一世ndices to partition the model channel into input signals, specified as a vector. The index vectorsyidxandUIDX指定如何分区一种进入yand信号分别。

输出参数

全部收缩

显式系统,作为静态或动态输入/输出模型返回。输出明确模型b与模型相同一种。For instance, if一种被指定为SS然后imp2exp也返回bas anSS模型。

也可以看看

|

一世ntroduced in R2011b