function [ sum_kaja ] = create_kaja( dt, lengTime, num, type, Egyseg, kaja_start )

sum_kaja=zeros(1, lengTime);

for i=1:num
kaja=zeros(1, lengTime);
func_kaja = select_kaja( type(i), Egyseg(i), dt );

start=(kaja_start(i)/dt);
kaja( start : (start-1)+(length(func_kaja)) )=func_kaja;

sum_kaja = sum_kaja(1:lengTime) + kaja(1:lengTime);

end

end

