"Invalid calling syntax for the "ssest" command."
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I am trying to fit a 2-pole state space model to some timeseries data using the ssest() command, using the code given below:
ttable=array2timetable(vars,'RowTimes',seconds(Time));
sys = ssest(ttable,2,'InputName',["vars1","vars2","vars3","vars4"],'OutputName',["vars5"])
Since this is a MIMO system, the call syntax follows the documentation screenshotted below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1572927/image.png)
For reference, here is a screenshot of the time table:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1572932/image.png)
Yet, when I try running the script, I get the error shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1572937/image.png)
The error message's only advice is to check the documentation, but what I've done seems like the correct syntax from what the webpage suggests. What am I doing wrong? Thanks very much for any advice!
댓글 수: 0
답변 (1개)
Star Strider
2023년 12월 19일
The syntax is corect, however beginning with R2022b.
From the documentation:
R2022b: Time-domain estimation data is accepted in the form of timetables and matrices
If upgrading is an option, upgrade. Otherwise, you will need to extract the data and use one of the other options.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Preparation Basics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!