Creating iddata from data in tables
이전 댓글 표시
I guess iddata won't accept data from a table.
>> dataTable(1:5,:)
ans =
5×5 table
Time H1 H2 T1 T2
____ __ __ _____ _____
0 0 0 21.23 21.23
1 0 0 21.55 21.55
2 0 0 21.55 21.55
3 0 0 21.87 21.55
4 0 0 21.55 21.23
>> dataSet = iddata(dataTable(:,4:5),dataTable(:,2:3));
Error using iddata (line 193)
The value of the "OutputData" property must be a double matrix or a cell array of such matrices.
Is this the only or best solution?
>> inputData = table2array(dataTable(:,2:3));
>> outputData = table2array(dataTable(:,4:5));
>> dataSet = iddata(outputData,inputData);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Hammerstein-Wiener Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!