Thread Subject: State Space Matrices

Subject: State Space Matrices

From: Mohit C

Date: 27 Dec, 2008 16:40:06

Message: 1 of 2

After creating a system "sys" using 'feedback' command, I'm trying to extract A_sys,B_sys,C_sys matrices for this new system.

I can view them by using ss(sys), but I'd like to use them for further math in my code.

Is there a way to extract them out ?

Subject: State Space Matrices

From: Katie Couvillon

Date: 27 Dec, 2008 18:59:02

Message: 2 of 2

Mohit C <mchhabra27@gmail.com> wrote in message <1943188.1230396037162.JavaMail.jakarta@nitrogen.mathforum.org>...
> After creating a system "sys" using 'feedback' command, I'm trying to extract A_sys,B_sys,C_sys matrices for this new system.
>
> I can view them by using ss(sys), but I'd like to use them for further math in my code.
>
> Is there a way to extract them out ?

There's a command called ssdata that you can use.

[A_sys,B_sys,C_sys,D_sys] = ssdata(sys)

That should work.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com