jhooper

5 Reputation

One Badge

1 years, 54 days

MaplePrimes Activity


These are questions asked by jhooper

Hello,

non-expert Maple user here.  Any help would be appreciated, I am trying to perform the following process:

1) Represent State Space matrices calculated by hand (ex: A, B, C, D) as a Maple object.

2) Find a solution to the State Space system of equations based on given initial conditions, or represent the same in any other form such as a plot or table.  I am right now trying without much success to use the ResponsePlot and Simulate functions for this.

I have completed (1) using the DynamicSystems > StateSpace object of the form

sys:= StateSpace(A,B,C,D)    // where A, B, C, D are the numeric matrices of the typical S-S set.

using a simple constant '1' as an algebraic input test, I use the ResponsePlot as follows:

ResponsePlot(sys, 1) 

Maple gives me the error: 

Error, (in DynamicSystems:-Simulate) for a continuous system, the second argument (input) must be an algebraic expression or a list of algebraic expressions; received Vector(7, [0,1,2,3,4,5,6])
NULL;

I am sure I'm missing something simple.  Can someone please assist in showing me what I'm doing wrong?  I tried using a vector [0,1,2,3,4] instead of an algebraic function, but it still returned an error.  I am open to other ways too, but the next best way seems to be to convert from StateSpace into individual differential equations and then solve them all manually with dsolve.  It seems like there has got to be a simpler way than that.  Does anyone know of a simple way to implement this process?

Page 1 of 1