

function [t,y]=pulsos_triang(vec,bps,v)
    tau=1/bps
    t=0: tau/50: length(vec)*tau
    x=1
    array=1 : 1 :length(vec)
    h=0
    for x = array
        h=pulso_triangular(t,vec(x)*v,tau,((x*tau-tau)+tau/2)) + h
    end
y=h
end