필터 지우기
필터 지우기

How to add tables in the Live Editor?

조회 수: 55 (최근 30일)
YT
YT 2018년 5월 29일
편집: Ganesh 2019년 9월 21일
I was wondering how to add a table in the live editor. Thanks.

답변 (3개)

Ganesh
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:

Anselm Griffin
Anselm Griffin 2018년 10월 18일
Hi Looks like you cant. If anybody else knows can they let us know please? Regards Anselm
  댓글 수: 2
Dennis
Dennis 2018년 10월 18일
A=randi(10,10,3);
table(A)
YT
YT 2018년 10월 18일
This was not what I meant. I found a solution. See my comment below.

댓글을 달려면 로그인하십시오.


YT
YT 2018년 10월 18일
I found a way around by using matrix as shown below.
$\left[\matrix{\textbf{Heading1}&\textbf{Heading2}&\quad&\textbf{Heading3}&\quad& \textbf{Heading4}&\quad&\textbf{Heading5}\cr & &\quad& &\quad& &\quad& }\right]$

카테고리

Help CenterFile Exchange에서 LaTeX에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by