MATLAB: Convolute two functions(two signals)

convolution

hi everbody i'd like to make a script file which convolute to two function . so i started to code this but unfortunately it doesn't work can you help me thx in advanced
here is my source code.
function x = conv(t)
% x = 1 pour t compris en -pi/2 et pi/2 et 0 ailleurs
if (t<abs(pi/2))
x=1;
else
x=0;
end
y=conv(x,x);
plot(y)

Best Answer

function x = myconv(t)
x = abs(t) < pi/2;
end
w=conv(x,x);
plot(w)
like that what're you think?