2

I want to implement a state space model with 4 inputs and 4 outputs in Simulink. But the state space block has only one input and only one output. So what can I do here?

Simulink State Space Block

Guido
  • 46,642
  • 28
  • 120
  • 174
gustavoreche
  • 205
  • 4
  • 12

1 Answers1

1

I figured it out just now. So all we have to use is a mux block for the input and demux block for outputs. enter image description here

gustavoreche
  • 205
  • 4
  • 12
  • 5
    Or even better: vectorise your inputs and outputs. Both blocks you have used for inputs & outputs support vectorised signals, so you only really need one block of each type. See for example [Determining the Output Dimensions of Source Blocks](http://uk.mathworks.com/help/simulink/ug/determining-output-signal-dimensions.html#bsud_ek-4) in the documentation. – am304 Apr 01 '16 at 10:29
  • @gustavoreche - If this answer solved your problem, please consider accepting it. – Karlo Apr 11 '16 at 08:06