Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I want to output in MatrixForm whenever I have a list/vector/matrix, but I do not want to have to type out the command each time.

How can I write one command at the beginning of the notebook so that all output is so formatted? (Also: generalization to any formatting would be better, with additional specific detail included for this case.)

share
    
closely related –  Kuba Apr 15 at 7:22

1 Answer 1

up vote 2 down vote accepted

You can use $Post:

$Post = If[ArrayQ@#, MatrixForm@#, #] &;

enter image description here

share
    
Is this what you are after? –  Kuba Apr 15 at 8:13
    
I think that that will do just fine! Thank you! (Could you explain what each pa‌​rt of that code does? Mathematica Documentation can confuse me easily and I like‌​ to be able to have multiple sources of explanation for the code.) –  kevin Apr 16 at 0:55
    
@kevin There is not much there, what is that you have problems with? Have you seen $Post? –  Kuba Apr 16 at 6:16

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .