Editable LaTeX source
Each grid cell becomes one matrix entry. Brackets are generated from the selected environment, with column separators and row endings added for you. Changing a bracket style changes notation, not the values or mathematical meaning of your entries.