matlabtransfer-function

matlab-create a matrix of transfer function


How can I define an n-by-n transfer function matrix in matlab? I just need to initialize it since I will load it with the correct tf in a second part of my code.

I tried with the definition:

MATRIX=zeros(n);

but each element of MATRIX is of double type. I want each element to be of tf data type.


Solution

  • You are looking to create Model Array. The command also depends on the number of inputs and outputs in your system. You can create it using for example:

    MATRIX = tf(zeros(no_inputs, no_outputs, n, n));