
How to add tables in the Live Editor?
조회 수: 55 (최근 30일)
이전 댓글 표시
I was wondering how to add a table in the live editor. Thanks.
댓글 수: 0
답변 (4개)
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:

댓글 수: 0
Anselm Griffin
2018년 10월 18일
Hi Looks like you cant. If anybody else knows can they let us know please? Regards Anselm
댓글 수: 2
Julie Shapiro
2025년 7월 10일
Starting in R2023b, you can add editable tables to live scripts using the toolstrip.
To insert a table, on the toolstrip, go to the Insert tab and select Table. Move the cursor over the grid to highlight the numbers of rows and columns you want and then click to add the table. To create a larger table, select the Insert a table button and specify the numbers of rows and columns in the dialog box.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!