Hi @David Cole,
I know you posted a question recently, “I want to avoid fractions in my answer to the null space” and I did post my answer to it as well. It sounds like you are working on a research project. However, I did go through your comments regarding boxing equations directly in the MATLAB equation editor. After reviewing your comments and conducting some research, I wanted to share the solution that might work for you.
You were asking if there is a direct way to box an equation within MATLAB’s equation editor, without having to rely on LaTeX. You also mentioned that you tried using the `\boxed` command in LaTeX, but it didn't work as expected.
The Solution:
Unfortunately, MATLAB's built-in equation editor doesn’t support a direct method to box an equation without using LaTeX. However, the most effective way to achieve the desired result is by using LaTeX within the Live Editor. Specifically, you can use the `\boxed` command around your equation, as follows:
\boxed{ R\left(A^T \right)=\left[\begin{array}{cc} 1 & 0 \\ 0 & 2 \\ 3 & 0 \\ 0 & -1 \end{array}\right] }
This will render the equation with a box around it when you insert the LaTeX code into MATLAB’s equation editor.
Helpful References:
To make this process easier, here are a few links with more information and step-by-step guides:
1. Inserting LaTeX Equations in MATLAB: [MathWorks Documentation on Equation Editor]( https://www.mathworks.com/help/matlab/matlab_prog/insert-equations.html )
2. Generating LaTeX Code Programmatically in MATLAB: [MATLAB Answers - Generating LaTeX from MATLAB Code]( https://www.mathworks.com/matlabcentral/answers/454936-from-matlab-to-latex )
3. Pretty Equation Viewer (for visual LaTeX formatting): [MATLAB Central - Pretty Equation Viewer]( https://www.mathworks.com/matlabcentral/fileexchange/55477-pretty-equation-viewer )
While the Live Editor's graphical equation editor doesn't support boxing equations directly, LaTeX remains the most effective solution for this. You can use the above LaTeX snippet in the equation editor to box your matrices.
Hope this helps.