fT

This function creates permutation matrices, which allows to permute the in- and output channels of an uncertain plant M in accordance with the given uncertainty blocks. This is an function that is used in, for example, iqcanalysis, and can also be used independently in another context or to set up an alternative analysis of controller synthesis problem.

Given the some matrix or system M with m_\mathrm{i} and m_ \mathrm{o} being the number of input and output channels respectively, the function [T_\mathrm{o}, T_\mathrm{i}]=fT(m_\mathrm{o},m_\mathrm{i},c_\mathrm{o},c_\mathrm{i}) creates the permutation matrices T_\mathrm{o} and T_\mathrm{i} based on the input/output channel selectors c_\mathrm{o} and c_\mathrm{i}, which are structures.

Example

With m_\mathrm{o}=3, m_\mathrm{i}=4, c_\mathrm{o}\{1\}=[2,3,1], and c_\mathrm{i}\{1\}=[4,1,3,2], we obtain:

    \[T_\mathrm{o}=\left(\begin{array}{ccc}0&1&0\\0&0&1\\1&0&0\end{array}\right),\ \ \ T_\mathrm{i}=\left(\begin{array}{cccc}0&1&0&0\\0&0&0&1\\0&0&1&0\\1&0&0&0\end{array}\right)\]

Then the matrix

    \[M =\left(\begin{array}{cccc}m_{11}&m_{12}&m_{13}&m_{14}\\  m_{21}&m_{22}&m_{23}&m_{24}\\  m_{31}&m_{32}&m_{33}&m_{34} \end{array}\right)\]

would permute into

    \[T_\mathrm{o}MT_\mathrm{i} =\left(\begin{array}{cccc}m_{24}&m_{21}&m_{23}&m_{22}\\  m_{34}&m_{31}&m_{33}&m_{32}\\  m_{14}&m_{11}&m_{13}&m_{12}\end{array}\right).\]

Previous page