It's printing on every iteration, it's just printing it all on one line so it looks like only one thing is getting printed.
The reason it's getting printed all on one line even though you've used the \n newline tag in your fprintf statement is because your formatting string has spots for 6 numbers, but you're only passing 5 numbers to it. If you drop the last %11.6f (or pass another number) it should work.