![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/239114/image.png)
How to add tables in the Live Editor?
62 次查看(过去 30 天)
显示 更早的评论
I was wondering how to add a table in the live editor. Thanks.
0 个评论
回答(3 个)
Ganesh
2019-9-21
编辑:Ganesh
2019-9-21
Using \matrix is perhaps the only way to do this. Here is an example to create a table with math:
\matrix{
\text{Component} & n_0 \text{mol} & n(\tau) \text{mol} & p(\tau) = P n(\tau)/\Sigma n(\tau) \cr
N_2 & 1 & 1-\xi/2 & P(1-\xi/2)/(4-\xi) \cr
H_2 & 3 & 3-3\xi/2 & P(3-3\xi/2)/(4-\xi) \cr
NH_3 & 0 & \xi & P\xi/(4-\xi) \cr
\Sigma & 4 & 4-\xi & P \cr
}
Entering this into the live editor's LaTeX equation box produces the following:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/239114/image.png)
0 个评论
Anselm Griffin
2018-10-18
Hi Looks like you cant. If anybody else knows can they let us know please? Regards Anselm
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!