简体   繁体   English

Matlab系统ID工具箱中iddata函数的多项实验

[英]Multiexperiments in iddata function from Matlab's system ID toolbox

I am trying to evaluate with iddata ( INFO ) in matlab, a number of N_E experiments. 我正在尝试使用matlab中的iddataINFO )进行评估,这是许多N_E实验。 I already computed and have as cell arrays of size 1x N_E the outputs and inputs, y and u respectively. 我已经计算出了大小为1x N_E的单元格数组, N_E是输出和输入yu Every entry of the cell arrays y and u is a vector of length N=316 (SISO system). 单元阵列yu每个条目都是一个长度为N=316的向量(SISO系统)。 For the sake of correctness, period is also a cell array of size 1x N_E , with the period in every entry. 为了正确起见, period也是大小为1x N_E的单元格数组,每个条目中都有该周期。

Using the command: 使用命令:

data = iddata(y,u,period);

doesn't produce the expected averaged data-set. 不会产生预期的平均数据集。 Instead, it is handled as a 361 x 361 MIMO system (!). 而是将其作为361 x 361 MIMO系统(!)处理。

I've already tried transposing, without results. 我已经尝试过移调,但没有结果。

data = iddata(y.',u.',period.');

Does someone know why this happens, and how can I produce the desired multi-experiment data-set? 有人知道为什么会发生这种情况吗?我该如何产生所需的多实验数据集?

PS the documentation I read is for Matlab R2014b, and I am running R2013b. PS我阅读的文档适用于Matlab R2014b,而我正在运行R2013b。 Does someone know if this was not supported in my edition? 有人知道我的版本是否不支持此功能? Or how can I find out? 或如何找出?

Actually, the Matlab documentation provides an answer to my question. 实际上,Matlab文档提供了我的问题的答案。 The function iddata is very strict regarding how the dimension of output y , input u and period period are defined. 功能iddata是非常严格的关于如何输出的尺寸y ,输入u和周期period进行定义。

Defining 1xN_experiments cell arrays for y , u and period (note: same size for all !; also N_experimentsx1 won't be recognized by iddata ) and then using iddata : yuperiod定义1xN_experiments单元格数组(注意: 所有 !的大小相同N_experimentsx1也无法识别iddata ),然后使用iddata

data = iddata(y,u,period);

gives the desired iddata structure. 给出所需的iddata结构。

Note all vectors within y and u must be of same length(!) 注意 yu内的所有向量必须具有相同的长度(!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM