Question about iterating through a for loop in Julia

I commented absolutely everything else out… and it worked.

Thanks for the debugging tip, hopefully I should be able to wrap it up from here.

EDIT:
There was an error in my argument. Thanks for the help again!

for k = 0:n
        println(k)
        Phi[k+1,:,:] = F(x0 + (cos(pi*k/n)+1.0)*(x1-x0)/2)
        println(Phi)
    end

EDIT EDIT
OMG its working!