Constraining the columns of a Matrix

In reply to dave_59:

Hello Dave!

What is with the ,j in the foreach loop? How does it work?

Thanks!