Implement the function "triangl.m": function y=triangl(t) y = (1-abs(t)).*(t>=-1).*(t<1); end a) Plot time versus baseband signal…

Implement the function “triangl.m”:

Place Order

function y=triangl(t)
y = (1-abs(t)).*(t>=-1).*(t<1);
end

a) Plot time versus baseband signal (m_sig)

b) Plot freq versus baseband signal spectrum (M_fre)

I’ve created and saved the function “triangle.m”, however, I’m
unsure how to implement it for parts a) and b) in MATLAB.