<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Solve state-space system</title>
    <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 12:24:44 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 12:24:44 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Solve state-space system</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Solve state-space system</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System</link>
    </image>
    <item>
      <title>Reference</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#answer142484</link>
      <itunes:summary>&lt;p&gt;See&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/37864-Sovle-A-Differential-Equation-Of-Matrix-S"&gt;http://www.mapleprimes.com/questions/37864-Sovle-A-Differential-Equation-Of-Matrix-S&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;, where a similar question was asked and answered. This link can be found by the "matrix equation" search in MaplePrimes at the top of this page.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;See&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/37864-Sovle-A-Differential-Equation-Of-Matrix-S"&gt;http://www.mapleprimes.com/questions/37864-Sovle-A-Differential-Equation-Of-Matrix-S&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;, where a similar question was asked and answered. This link can be found by the "matrix equation" search in MaplePrimes at the top of this page.&lt;/p&gt;</description>
      <guid>142484</guid>
      <pubDate>Mon, 21 Jan 2013 22:42:44 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>MatrixExponential</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#answer142485</link>
      <itunes:summary>&lt;p&gt;You may want to try MatrixExponential because it is so seemingly simple:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;A:=ImportMatrix("G:/MapleDiverse/MaplePrimes/A-1.txt"):&lt;br&gt;C:=ImportMatrix("G:/MapleDiverse/MaplePrimes/C.txt"):&lt;br&gt;Y0:=ImportMatrix("G:/MapleDiverse/MaplePrimes/Y0.txt"):&lt;br&gt;Digits:=15:&lt;br&gt;E:=LinearAlgebra:-MatrixExponential(A,t):&lt;br&gt;simplify(fnormal~(eval(E,t=0),8)); #Just a check: Should be the identity matrix&lt;br&gt;#Considering you previously posted question I assume you may accept the following as X(0) (?):&lt;br&gt;X0:=LinearAlgebra:-LeastSquares(C,convert(Y0,Vector));&lt;br&gt;#The solution:&lt;br&gt;X:=E.X0:&lt;br&gt;plot([seq(Re(X[i]),i=1..5)],t=0..0.1); #Just to see something.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You may want to try MatrixExponential because it is so seemingly simple:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;A:=ImportMatrix("G:/MapleDiverse/MaplePrimes/A-1.txt"):&lt;br&gt;C:=ImportMatrix("G:/MapleDiverse/MaplePrimes/C.txt"):&lt;br&gt;Y0:=ImportMatrix("G:/MapleDiverse/MaplePrimes/Y0.txt"):&lt;br&gt;Digits:=15:&lt;br&gt;E:=LinearAlgebra:-MatrixExponential(A,t):&lt;br&gt;simplify(fnormal~(eval(E,t=0),8)); #Just a check: Should be the identity matrix&lt;br&gt;#Considering you previously posted question I assume you may accept the following as X(0) (?):&lt;br&gt;X0:=LinearAlgebra:-LeastSquares(C,convert(Y0,Vector));&lt;br&gt;#The solution:&lt;br&gt;X:=E.X0:&lt;br&gt;plot([seq(Re(X[i]),i=1..5)],t=0..0.1); #Just to see something.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142485</guid>
      <pubDate>Mon, 21 Jan 2013 22:53:01 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Numerical solution</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#answer142488</link>
      <itunes:summary>&lt;p&gt;Suppose you have found an acceptable initial vector X0 (see my other answer).&lt;br&gt;Then a numerical solution could be found like this:&lt;br&gt;X:= &amp;lt; seq(x[i](t),i=1..7 )&amp;gt;;&lt;br&gt;#The ode system&lt;br&gt;sys:=convert(diff~(X,t)=~A.X,set);&lt;br&gt;#The initial conditions:&lt;br&gt;ics:=convert(eval(X,t=0)=~X0,set);&lt;br&gt;#The numerical solution:&lt;br&gt;res:=dsolve(sys union ics,numeric);&lt;br&gt;plots:-odeplot(res,[seq([t,x[i](t)],i=1..7)],0..0.1);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Suppose you have found an acceptable initial vector X0 (see my other answer).&lt;br&gt;Then a numerical solution could be found like this:&lt;br&gt;X:= &amp;lt; seq(x[i](t),i=1..7 )&amp;gt;;&lt;br&gt;#The ode system&lt;br&gt;sys:=convert(diff~(X,t)=~A.X,set);&lt;br&gt;#The initial conditions:&lt;br&gt;ics:=convert(eval(X,t=0)=~X0,set);&lt;br&gt;#The numerical solution:&lt;br&gt;res:=dsolve(sys union ics,numeric);&lt;br&gt;plots:-odeplot(res,[seq([t,x[i](t)],i=1..7)],0..0.1);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142488</guid>
      <pubDate>Tue, 22 Jan 2013 00:35:36 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Output Error</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#comment142495</link>
      <itunes:summary>&lt;p&gt;Thanks you Preben,&lt;/p&gt;
&lt;p&gt;Your idea is great, but there is the large error of the output at the beginning (t from 0 to 0.1).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we solve the state space form without finding the initial values of the state X?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks you Preben,&lt;/p&gt;
&lt;p&gt;Your idea is great, but there is the large error of the output at the beginning (t from 0 to 0.1).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we solve the state space form without finding the initial values of the state X?&lt;/p&gt;</description>
      <guid>142495</guid>
      <pubDate>Tue, 22 Jan 2013 02:28:11 Z</pubDate>
      <itunes:author>STHence</itunes:author>
      <author>STHence</author>
    </item>
    <item>
      <title>X0 unknown</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#comment142501</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142482-Solve-Statespace-System#comment142495"&gt;@STHence&lt;/a&gt; If X(0) is not known, but is just&lt;/p&gt;
&lt;p&gt;X0:= &amp;lt;seq(x0[i],i=1..7)&amp;gt;;&lt;/p&gt;
&lt;p&gt;then you can still compute E.X0, but then you are faced with having to solve Y = C.X w.r.t. X0 in some "best" way.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142482-Solve-Statespace-System#comment142495"&gt;@STHence&lt;/a&gt; If X(0) is not known, but is just&lt;/p&gt;
&lt;p&gt;X0:= &amp;lt;seq(x0[i],i=1..7)&amp;gt;;&lt;/p&gt;
&lt;p&gt;then you can still compute E.X0, but then you are faced with having to solve Y = C.X w.r.t. X0 in some "best" way.&lt;/p&gt;</description>
      <guid>142501</guid>
      <pubDate>Tue, 22 Jan 2013 07:09:35 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Professional Code</title>
      <link>http://www.mapleprimes.com/questions/142482-Solve-Statespace-System?ref=Feed:MaplePrimes:Solve state-space system:Comments#comment142502</link>
      <itunes:summary>&lt;p&gt;I really appreciate your help&amp;nbsp;&lt;a href="http://www.mapleprimes.com/questions/142482-Solve-Statespace-System#comment142501"&gt;@Preben Alsholm&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Your code is short and professional.&lt;/p&gt;
&lt;p&gt;However, there are errors in the inital values of the output Y that is solved in Maple.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I really appreciate your help&amp;nbsp;&lt;a href="http://www.mapleprimes.com/questions/142482-Solve-Statespace-System#comment142501"&gt;@Preben Alsholm&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Your code is short and professional.&lt;/p&gt;
&lt;p&gt;However, there are errors in the inital values of the output Y that is solved in Maple.&lt;/p&gt;</description>
      <guid>142502</guid>
      <pubDate>Tue, 22 Jan 2013 11:35:08 Z</pubDate>
      <itunes:author>STHence</itunes:author>
      <author>STHence</author>
    </item>
  </channel>
</rss>