LaTeX matrix when publishing
29 次查看(过去 30 天)
显示 更早的评论
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}
0 个评论
回答(1 个)
Walter Roberson
2015-9-10
bmatrix is part of amsmath but you cannot (at all easily) load the ams* packages.
5 个评论
Walter Roberson
2015-9-19
pmatrix is part of the mathtools package, but bmatrix is part of the amsmath package.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!