Specifications

Table Of Contents
LTI Properties
2-35
Input Names and Output Names
You can use the InputName and OutputName properties (in short, I/O names) to
assign names to any or all of the input and output channels in your LTI model.
For example, you can create a SISO model with input
thrust, output
velocity, and transfer function by typing
h = tf(1,[1 10]);
set(h,'inputname','thrust','outputname','velocity',...
'variable','p')
Equivalently, you can set these properties directly by typing
h = tf(1,[1 10],'inputname','thrust',...
'outputname','velocity',...
'variable','p')
This produces
Transfer function from input "thrust" to output "velocity":
1
------
p + 10
Note how the display reflects the input and output names and the variable
selection.
In the MIMO case, usecell vectors of strings tospecify input or output channel
names. For example, type
num = {3 , [1 2]};
den = {[1 10] , [1 0]};
H = tf(num,den); % H(s) has one output and two inputs
set(H,'inputname',{'temperature' ; 'pressure'})
The specified input names appear in the display of H.
Transfer function from input "temperature" to output:
3
------
s + 10
Transfer function from input "pressure" to output:
Hp
()
1 p 10+
()
=