Using built in ARX function to estimate a linear ARX model for multiple input/output pairs of different size
Show older comments
Hello,
I have multiple trials of input / output (aka I/O from now on) data for a system sampled at 1 millisecond resolution. Each trial lasts a couple of seconds. In total there are, lets say, hours of data. Thousands of trials were performed.
being an ARX model, the response of the system to an input at any given time is dependent both on past inputs, and previous responses of the system. This being the case, the first few elements of each trial cannot be modelled (assumingly the purpose of the time delay argument of ARX function?), as they do not come with previous data for which to estimate a system response.
Alright great, here is where the problem comes up. Because of this need to skip the initial elements of each trial, I cannot just concatenate all the I/O data across trials into some mega vector and feed that into the arx function as one I/O pair - some of those elements will actually be independent of the previous data which arx will base the estimated model on.
And, I can't take advantage of the multi I/O pair functionality of the arx function because the trial durations were variable. As such, the length of the I/O pairs are different from trial to trial. So they cannot all be expressed in an array where each row represents new trial data, because that will cause each row to need to have a different size.
Anyone familiar with the arx function and have an idea for how to approach this problem correctly? I was thinking I could just fill the empty spots with NaN's.. but I don't know too much about the flexibility of arx.
Thanks in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Nonlinear ARX Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!