[已解决] Matlab出现 此类型的变量不支持使用点进行索引 的报错

[复制链接]
wx_Po5CdhaA 发表于 2021-12-9 10:49:03
本帖最后由 wx_Po5CdhaA 于 2021-12-9 11:04 编辑

报错:


出错部分代码:


请问为什么e.OutputData处没有报错,而p.OutputData处会报错?应该怎么改?

最佳答案


TouAkira 发表于 2021-12-9 11:11:16
①请直接发布代码/报错信息的文本、以附件给出必要数据,请不要用粘贴截图的方式(这会同时浪费提问者和回答者的时间)提问。
②请仔细看帮助文档,resid函数文档明确写了
Output Arguments
E — Model residuals

Model residuals, returned as an iddata object. The residuals are stored in E.OutputData, and the inputs are stored in E.InputData. Use E to build models that describe the dynamics from the inputs to the residuals. The dynamics are negligible if sys is a reliable identified model.

predict函数 文档写的是
Output Arguments
yp — Predicted output response
iddata object | matrix of doubles

Predicted output response, returned as one of the following:
    iddata object — When data is an iddata object. The OutputData property of yp stores the values of the predicted output. The time variable takes values in the range represented by data.SamplingInstants.

    Matrix of doubles — When data is a matrix of doubles.
回复此楼

2 条回复


TouAkira 发表于 2021-12-9 11:11:16
①请直接发布代码/报错信息的文本、以附件给出必要数据,请不要用粘贴截图的方式(这会同时浪费提问者和回答者的时间)提问。
②请仔细看帮助文档,resid函数文档明确写了
Output Arguments
E — Model residuals

Model residuals, returned as an iddata object. The residuals are stored in E.OutputData, and the inputs are stored in E.InputData. Use E to build models that describe the dynamics from the inputs to the residuals. The dynamics are negligible if sys is a reliable identified model.

predict函数 文档写的是
Output Arguments
yp — Predicted output response
iddata object | matrix of doubles

Predicted output response, returned as one of the following:
    iddata object — When data is an iddata object. The OutputData property of yp stores the values of the predicted output. The time variable takes values in the range represented by data.SamplingInstants.

    Matrix of doubles — When data is a matrix of doubles.
回复此楼

wx_Po5CdhaA 发表于 2021-12-9 11:17:50
TouAkira 发表于 2021-12-9 11:11
①请直接发布代码/报错信息的文本、以附件给出必要数据,请不要用粘贴截图的方式(这会同时浪费提问者和回答 ...

好的,非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

相关帖子
相关文章
热门教程
站长推荐
快速回复 返回顶部 返回列表