How to generate random stable state space?

18 views (last 30 days)
Hey guys,
How to generate random stable state space model? A=rand(100,100) with eig(A)<0.
Thanks, Rebbecca

Accepted Answer

Sebastian Castro
Sebastian Castro on 4 Jun 2017
Yes, you can!
>> A = rss(100)
- Sebastian
Andrey Kharitenko
Andrey Kharitenko on 7 Jan 2022
Doesn't quite answer the question.
rss allows for integrators in the model, so the result may be unstable.

Sign in to comment.

More Answers (1)

Firas Omran
Firas Omran on 1 Oct 2017
I would like to generate a random NON-linear state space system. Is there a command for that or shall i generate a linear one and then modify it to make it nonlinear (add square, sine, cosine, etc.) ? And how to ensure the generated system is a stable system ?
Appreciate your help.
Thanks Firas


Find more on Linearization 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!