|
"Volker Klink" <volker.v.klinkNOSPAM@daimler.com> wrote in message <gh0qsh$alp$1@fred.mathworks.com>...
> Hi!
> I'm quite experienced with MatLab but not with Simulink...
> So this is probably very simple for you guys:
>
> I have a state-space-block in Simulink which requires to define the matrices A,B,C,D.
> Normally you define these matrices directly in the Function Block Properties with numeric values. But I would like to define these matrices with values, called a and b, which I have calculated with another block.
> The ss-block only has one input and one output for the x and u vector. So I can't get my a and b into the ss-block by connecting it with lines....
>
> When I try to run the model Simulink complains, that a and b are unknown variables...
>
> Thanks!
If you have your A, B, C and D calculated on signal lines, you should just build the equations with base blocks. Integrator, matrix multiply, sum. The state space block uses constant values for A, B, C and D. It sounds like your values are not constant so the State Space block is not right for your system.
Seth Popinchalk
Check out my Simulink blog: http://blogs.mathworks.com/seth/
Senior Applications Engineer
The MathWorks, Inc.
|