LaTeX matrix when publishing

조회 수: 12 (최근 30일)
Rick
Rick 2015년 9월 9일
댓글: Pedro Pedrosa 2019년 5월 10일
Hello,
I'm trying to publish some latex, and for some reason it is not accepting my matrix. I have tested on another site and it seems to work, but I am wondering if the syntax for matlab latex is different from other places
% $$ \vec {x} = \begin {bmatrix} T-T_{s} \\ C_{A} - C_{As} \\ C_{P} - C_{Ps} \end
% {bmatrix} $$
Is not making a matrix for me. What is wrong?
This is the output on the published file
Error updating Text.
String must have valid interpreter syntax:
$$ \vec {x} = \begin {bmatrix} T-T_{s} \\ C_{A} - C_{As} \\ C_{P} - C_{Ps} \end {bmatrix}

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 10일
bmatrix is part of amsmath but you cannot (at all easily) load the ams* packages.
  댓글 수: 5
Walter Roberson
Walter Roberson 2015년 9월 19일
pmatrix is part of the mathtools package, but bmatrix is part of the amsmath package.
Pedro Pedrosa
Pedro Pedrosa 2019년 5월 10일
If you want square braces use \matrix{} enclosed with \left[ \right].

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by