MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
NoteTo create a matrix using the matrix and pmatrix commands, use the & symbol to
separate columns, and \cr to separate rows. For example, to create a 2–by–2 matrix, use
the expression \matrix{a & b \cr c & d}.

White Space

Sample LaTeX Command Sample LaTeX Command Sample LaTeX Command
negthinspace abc mathord a[b mathopen

ab thinspace a∑b mathop a]b mathclose

ab enspace a+b mathbin a b mathinner
a b quad a=b mathrel a b kern, mkern
a b qquad a,b mathpunct

Text Styling

Sample LaTeX Command Sample LaTeX Command Sample LaTeX Command
displaystyle ABCDE text, textnormal ABCDE texttt

textstyle ABCDE bf, textbf,
mathbf

ABCDE textsf

scriptstyle ABCDE it, textit,
mathit

AℬCDℰ cal, mathcal

scriptscriptsty
le

ABCDE rm, textrm,
mathrm

ABCDE hbox, mbox

See Also


Related Examples



  • “Share Live Scripts and Functions” on page 19-69


External Websites



19 Live Scripts and Functions

Free download pdf