I have .m script that uses greybox estimation. The script works fine when I run it in Matlab 2019b. However, when I ran same script with same inputs in Matlab 2022a, it gives 'system unstable' error.
- What is causing this error?
- How do I make the same script work in new Matlab release?
Error message:
Error using iddata/greyest
The initial computation of the loss function failed. The initial model, if specified, may be unstable.
For linear models, consider setting the "EnforceStability" option to TRUE.
For structured estimations (procest, greyest, nlgreyest) check that the parameter bounds do not make the model
unstable.