i got error in iddata about intersample size..how to fix it?
Show older comments

6 Comments
Walter Roberson
on 8 May 2019
It looks to me as if you could get that if you applied diff() to a value of type iddata and the value happened to be empty.
Is it deliberate that you are applying diff to an iddata value? What are the characteristics of that iddata value ?
KJ DINESHBABU
on 9 May 2019
Edited: KJ DINESHBABU
on 9 May 2019
Walter Roberson
on 9 May 2019
When you created the model and processed your data with it, the model should have estimated a number of parameters. Extract those parameters from the model. If you got out one or two row vectors then tf() might be the appropriate call from there, but if you got out a few 2D matrices then ss() might be the constructor.
My suspicion is that you will not need to construct the derivatives yourself: I suspect that the model has the values you need.
However I only did a little work on iddata and that was several years ago, so I might be missing something important.
KJ DINESHBABU
on 9 May 2019
Walter Roberson
on 9 May 2019
ss() does not care where it gets the numeric matrices. You can create a neural network with a vector of numeric outputs, which you can then extract portions of, and reshape, and pass to ss to create a state space model that you can simulate your model over to measure goodness of. That produces reactions that you can feed in to the neural network.
In theory. There might be easier or better ways.
KJ DINESHBABU
on 9 May 2019
Answers (0)
Categories
Find more on Controller Creation 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!