How to generate random stable state space?

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

 Accepted Answer

Yes, you can!
>> A = rss(100)
- Sebastian

3 Comments

Thank you Sebastian!
Does rss guarantee stability? The question was for a random stable system.
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
Hello,
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

Community Treasure Hunt

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

Start Hunting!