I keep encountering an error when trying to create an iddata object, and I can't understand why

43 ビュー (過去 30 日間)
L T
L T 2015 年 3 月 17 日
回答済み: omer cakmak 2019 年 7 月 8 日
Hello,
I am trying to convert a vector to an iddata object. I have a vector (y) of dimension [7800 X 1],and there is nothing particularly unique about it.
If try to convert to an iddata object as follows:
y = iddata(y);
I get the following error:
Error using iddata (line 193)
The value of the "OutputData" property must be a double matrix or a cell array of such matrices.
I can't for the life of me figure out what is wrong with my timeseries. I'm able to convert vectors of random numbers to iddata object. Does anyone have a clue why I'm getting this error.
All my thanks.

回答 (3 件)

omer cakmak
omer cakmak 2019 年 7 月 8 日
Thanks man. In my problem they were two important points;
1) Convert type single to double ie. double(y).
2) Take transpose.

L T
L T 2015 年 3 月 17 日
編集済み: L T 2015 年 3 月 17 日
Um, I figured it out. My vector was single precision.
LT

Fei Yuan
Fei Yuan 2018 年 7 月 13 日
Thanks for the answers. I got the same issue. After converting the data to "double" data type, it works good.

カテゴリ

Help Center および File ExchangeTransfer Function Models についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by