function[vec] = test(v)


a = v(1)

    function[vec2] = calc(v)
for k=2:3
    calc(k)=3*v(k)
end
calc(1)=1
vec2=calc
    end

vec = [v(1),calc(v)]

end
      


