3D matrix visualization, like in Python
up vote
4
down vote
favorite
I want to create something like the following, however I can’t add red brackets and the commas. This is my code: [ left[left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 0 end{array} right] % left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 0 & 0 \ 0 & 0 & 0 end{array} right] % left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 0 & 0 \ 0 & 0 & 0 end{array} right]right] ] [ left[left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 0 & 0 \ 0 & 0 & 0 end{array} right] % left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 0 end{array} right] % left[ begin{array}{ccc} 0 & 0 & 0 \ 0 & 0 & 0 \ 0 & 0 & 0 end{array} right]right] ] [ left[left[ begin{a