How can I justify my matrices?
5 views (last 30 days)
I know this might seem trivial, but I want to know how I can change how my matrices display, without functions. Is there a preference I need to change or something? I see other people have their matrices justified/aligned in the command window, but I can't seem to know why I don't. When working with lengthy matrices and symbolic variables this can become a hassle.
I show an example here of my output when working with Jacobian matrices.
Paul Hoffrichter on 25 Apr 2021
I find this form using Live Editor preferable to pretty.
syms t1 t2 t3 d3 a2
J11 = [-cos(t1)*(d3*cos(t2+t3) + a2*cos(t2)), sin(t1)*(d3*sin(t2+t3) +a2*sin(t2)), d3*sin(t2+t3)*sin(t1);
-sin(t1)*(d3*cos(t2+t3) + a2*cos(t2)), -cos(t1)*(d3*sin(t2+t3) + a2*sin(t2)), -d3*sin(t2+t3)*cos(t1);
0, d3*cos(t2+t3) + a2*cos(t2), d3*cos(t2+t3)]