主要内容

本页采用了机器翻译。点击此处可查看英文原文。

advice

针对数据或估计线性模型的分析与建议

说明

advice(data) 在 MATLAB® 命令行窗口中显示了以下有关数据的信息:

  • 信号的激励水平是多少?这会对模型阶数产生什么影响?另请参阅 pexcit

  • 从数据中去除常量偏移量和线性趋势是否合理?另请参阅 detrend

  • 数据中是否有输出反馈的迹象?另请参阅 checkFeedback

  • 非线性 ARX 模型的表现会比线性 ARX 模型更好吗?另请参阅 isnlarx

示例

advice(model,data) 在 MATLAB 命令行窗口中显示了关于估计线性模型的以下信息:

  • 该模型是否捕捉到了系统的基本动态特性以及扰动特征?

  • 模型阶数是否超过了实际需求?

  • 验证数据中是否存在潜在的输出反馈?

示例

全部折叠

加载一个估计数据集。

load frictiondata

创建一个采样时间为一秒的 iddata 对象。

z = iddata(f1,v,1);

分析数据并获取建议。这里,f1 是输出数据,v 是输入数据。

advice(z)
General data characteristics:
-----------------------------
This is a time domain data set with 1 input(s) and 1 output(s), 2001 samples 
and 1 experiment(s).

All inputs in the data have been denoted as 'zero order hold' ('zoh'), i.e. 
they are assumed to be piecewise constant over the sample time.
If the input is a sampled continuous signal and you plan to build or convert to 
continuous-time models, it is recommended to mark the InterSample property as 
'First order hold': Data.InterSample = 'foh' or Data.InterSample = 
{'foh','foh', ...} for multi-input signals.

Some inputs and/or outputs have non-zero means. It is generally recommended to 
remove the means by DAT = DETREND(DAT), except in the following cases:
1. The signals are measured relative to a level that corresponds to a physical 
equilibrium. This could e.g. be the case if step responses are recorded from an 
equilibrium point. In this case, it is advisable to remove the equilibrium 
values rather than data means. You may do so using a TrendInfo object with 
DETREND command, or during estimation using the "InputOffset" and 
"OutputOffset" estimation options.
2. There is an integrator in the system, and the input and output levels are 
essential to describe the effect of the integration.
3. You are going to use the data to estimate nonlinear ARX models.

Excitation level in data:
-------------------------
The input is persistently exciting of order 2. This means that you will 
encounter problems if estimating models of order higher than 2.

Possibility of feedback in data:
--------------------------------
There is no significant indication of feedback in the data.
Use the "checkFeedback" command for assessment of feedback with more options.

Possibility of nonlinearity:
----------------------------
There is an indication of nonlinearity in the data.
A nonlinear ARX model of order [4 4 1] and idTreePartition function performs 
better prediction of output than the corresponding ARX model of the same order. 
Consider using nonlinear models, such as IDNLARX, or IDNLHW. You may also use 
the "isnlarx" command to test for nonlinearity with more options.

输入参数

全部折叠

估计数据,指定为时间表、以逗号分隔的矩阵对 u,yiddata 对象。

模型对象,指定为 idtfidgreyidpolyidprocidss 对象。

版本历史记录

在 R2006a 之前推出

全部展开