Here is how the two signals are plotted: >> plot(time,cat(2,P{:}),time,cat(2,T{:}),'--') >> title('Input and Target Signals') >> xlabel('Time') >> ylabel('Input \_\_\_ Target \_ \_')