Converting Matlab code to mathematical equations

5 ビュー (過去 30 日間)
Oliver
Oliver 2014 年 5 月 2 日
コメント済み: manoj subedi 2016 年 9 月 29 日
Hi,
I understand that it is possible to convert mathematical equations to code usable in Matlab, but is there a simple method for exporting sections of code as mathematical equations, for use in a manuscript for example?
Thanks!
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 2 日
編集済み: Azzi Abdelmalek 2014 年 5 月 2 日
What do you mean? Give an example
manoj subedi
manoj subedi 2016 年 9 月 29 日
For all $r\in\Q\cap [0,1)$, set $N_{r} = I_{r}\cup II_{r}$, since $$I_{r} = \{x+r\ |\ x\in E\cap [0,1-r)\}\ \text{e}\ II_{r}=\{x+r-1\ |\ x\in E\cap [1-r,1)\}.$$
Note that $N_{r}$ i Lebesgue-mensurable, because $I_{r}$ is tranlation of $E\cap [0,1-r)$ and $II_{r}$ is tranlation of $E\cap [1-r,1)$ that are Lebesgue-mensurable. In addition, for each $r\in [0,1)\cap\Q$, $$m(N_{r}) = m(I_{r}\cup II_{r}) = m(I_{r}) + m(II_{r}) = m(E\cap [0,1-r)) + m(E\cap [1-r,1)) = m(E).$$
Yet, if $m(E)>0$, then $$m\left(\bigcup_{r\in\Q\cap [0,1)} N_{r}\right) = \sum_{ r\in\Q\cap [0,1)} m(N_{r}) = \sum_{ r\in\Q\cap [0,1)} m(E) = +\infty .$$
But in the other hand, $$\bigcup_{r\in\Q\cap [0,1)} N_{r}\ \subset\ [0,1)\Rightarrow\ m\left(\bigcup_{r\in\Q\cap [0,1)} N_{r}\right) \leq 1,$$ what is a contradiction.
Soon, $m(E)=0$.So now need to convert in to formulas. Can you help?

サインインしてコメントする。

回答 (2 件)

Eustace Tan
Eustace Tan 2014 年 5 月 2 日
編集済み: Eustace Tan 2014 年 5 月 2 日
Perhaps you mean something like LaTeX?

Star Strider
Star Strider 2014 年 5 月 2 日
The Symbolic Math Toolbox Code Generation functions can create Tex or LaTeX representations of symbolic expressions.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by