function MQ=VectLinSpace(Qi,Qf,K)

for j=1:size(Qi,1)
    M(j,:)=linspace(Qi(j,1),Qf(j,1),K+2);
end
MQ=M;