clear all; close all;
T1 = 1;
T2 = 5;
T3 = 10;
num = [ 0 1 ];
den1 = [ T1 1 ];
den2 = [ T2 1 ];
den3 = [ T3 1 ];
sys1 = tf( num, den1 );
sys2 = tf( num, den2 );
sys3 = tf( num, den3 );
t = 0:0.01:50;
[ y1, t1 ] = step( sys1, t );
[ y2, t2 ] = step( sys2, t );
[ y3, t3 ] = step( sys3, t );
plot(t1,y1,'-b',t2,y2,'-g',t3,y3,'-r');
xlim([0,50])
ylim([0,1.2])
xticks([0 10 20 30 40 50])
yticks([0 0.2 0.4 0.6 0.8 1.0 1.2])
grid;
xlabel('time t [s]');
ylabel('y(t) = 1 - e^{-t/T}')
legend('T = 1','T = 5','T = 10');