I was trying to convert using the command ss2tf
but the sintax of this command shows where to type the number of inputs of the system, but not the number of outputs. Nevertheless I tried to obtain my matrix transfer function with
[num,den]=ss2tf(Ac,Bc,Cc,Dc,4)
where '4' it's the number of inputs.
As a result, the vector "num" has 4x9 dimension and my vector "den" has 1x9 dimension, so I got an error using
F=tf(num,den)
because "den" should have 4x9 dimension aswell.
So, is there another way to obtain transfer function from state space (with the option of including number of inputs and outputs)??
obs: the dimmensions of Ac, Bc, Cc and Dc are, respectively, 8x8; 8x4, 4x8 and 4x4.
edit: figured it out how to solve it. There's an answer below.