Time Domain Data or Correct Data Structure for System Identification Toolbox

1 view (last 30 days)
Hi,
New to Matlab's system identification toolbox. I have a question regarding the data structure requirement in terms of time domain data.
.
The system requires that I have input and output data.
Please see attached screenshot...will something like this qualify as a correct time domain data for the system identification toolbox? where first column is time, second column is input and third column is output? I could also create an iddata using data = iddata(y,u,Ts). I want to be sure however that the data I will be importing to the workspace is in the correct format first.
Are there any other data format I can use? My data is in two parts, input and output (20 rows each), both of them sharing the same timestamps.
Any guidance on the appropriate representation of my data will be appreciate!
Thank you!

Accepted Answer

Star Strider
Star Strider on 6 Oct 2022
The signals appear to be regularly sampled, so that should work. The iddata function is an appropriate starting point for time domain data.
I generally use ssest to identify systems because state space models are generally more robust (at least in my experience), although all the appropriate estimation options should work. I also always use the compare function to see how well the identified system matches the data.
  4 Comments
Learning
Learning on 6 Oct 2022
Once again thank you! Last question: any idea how my input data should be if I have multiple inputs? Right now I have just one input and one output. If I have 2 inputs, should I put them in column 1&2 of the input matrix? And if I have 2 output? Any suggestions?
Thanks!
Star Strider
Star Strider on 6 Oct 2022
As always, my pleasure!
Yes to both. See the iddata documentation sections on u and y respectively.

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!