MATLAB: How to display symbolic matrix with square brackets instead of round brackets in Live Editor in MATLAB 9.6 (R2019a)

liveMATLABscript

I would like to display matrices with square brackets the following syntax can be generated.

Best Answer

To display matrices with square brackets, You can use 'sympref' and set the 'MatrixWithSquareBrackets' preference to true.
sympref('MatrixWithSquareBrackets',true)