How do I get pretty symbolic expressions in MATLAB using fancy?
조회 수: 109 (최근 30일)
이전 댓글 표시
Do you remember how to use the Fancy() function? I only found this http://www.mathworks.com/matlabcentral/newsreader/view_thread/12223
I would like to show in a fancy format all the outputs in the command line I get this error
>> fancy(x^2)
??? Undefined function or variable 'x'.
What do I need to install?
댓글 수: 0
답변 (4개)
Davide Ferraro
2011년 2월 1일
The FANCY function on the MATLAB newsgroup is not part of standard MATLAB. To make use of that code you need to copy it from the discussion in a new MATLAB file and save it in the MATLAB path.
If you are working with symbolic objects (that need Symbolic Math Toolbox) you can use the PRETTY command that is directly available with the toolbox.
A = sym(pascal(2))
B = eig(A)
pretty(B)
댓글 수: 0
Julio Cesar
2011년 2월 4일
댓글 수: 1
Walter Roberson
2011년 2월 4일
Please clarify as to which link did not work.
The newsgroup discussion includes the complete source for fancy() in it, but fancy() is for setting via LaTex using a particular Windows LaTex implementation. The pretty() command is built in to MuPad, but that requires that you have the Symbolic Toolbox. If your version of Matlab is old enough that you are using Maple as the symbolic engine, I am not certain that pretty() was available; pretty() is not part of the Maple language.
Julio Cesar
2011년 2월 5일
편집: Walter Roberson
2015년 7월 25일
댓글 수: 1
Walter Roberson
2011년 2월 5일
That *is* the newsgroup discussion link, and the source for fancy() is message #4 of 4 in the series.
참고 항목
카테고리
Help Center 및 File Exchange에서 LaTeX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!