Pretty Equation Viewer

버전 1.0.0.0 (2.97 KB) 작성자: Brett
Display a pretty latex-formatted version of a Matlab expression.
다운로드 수: 1.3K
업데이트 날짜: 2016/2/18

Pops up a figure with a pretty latex-formatted equation for a Matlab expression. Works for previous line in a script, previous command at command prompt, or for equations passed inline. The inspiration for this was to double check that an equation typed into Matlab matches an equation in a textbook or other reference. This helps avoid misplaced parenthesis for example. The 3 use cases are as follows:
1. In a script: Make a call to pretty_equation() on the following line.

Example:
y = exp(a^3 / b^2) * (x^2 + 2*x - sqrt(3))/(x^3 + 2*x^2 - 4* x + 12);
pretty_equation()

Note: Script execution will continue when the Equation Viewer dialog
is dismissed.

2. Inline: just provide the expression as a string argument:

Example:
pretty_equation('y = exp(a^3 / b^2)')

3. Command Line: Just call pretty_equation() at the command line to
visualize the previous command.

Example:
>> y = x^2 + x;
>> pretty_equation()

Consideration has been made for multi-line expressions and comments to
make the utility robust for most use cases. Expressions are parsed with
Matlab's Symbolic Toolbox. Not all Matlab expressions translate to valid
symbolic equations (especially non-math functions, but also arrays for
example). Error handling exists to inform when expressions aren't
parsable.

인용 양식

Brett (2024). Pretty Equation Viewer (https://github.com/flutefreak7/matlab_pretty_equation), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Live Scripts and Functions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0.0

Edited title and description

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.