MATLAB: Vector must be same size, using conv, only having trouble with the third figure

conv

t = 0:.1:7;
mu = 1;
mu1 = 6;
x_t = my_unit_step(t,mu)-my_unit_step(t,mu1);
plot(t,x_t)
figure
t1 = 0:.1:8;
mu2 = 2;
mu3 = 4;
h_t = my_unit_step(t1,mu2)-my_unit_step(t1,mu3);
plot(t1,h_t)
figure
ty = (2:.1:9);
y1 = conv(h_t,x_t, 'same');
plot(ty,y1)
figure

Best Answer

ty and y1 are vectors of different lengths, so of course they cannot be plotted vs. one another
K>> whos ty y1
Name Size Bytes Class Attributes
ty 1x71 568 double
y1 1x81 648 double