Skip to main content
Engineering LibreTexts

1.1: Operators and Special Characters

  • Page ID
    86616
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Command Effect

    Plus; addition operator.

    Minus; subtraction operator.

    Scalar and matrix multiplication operator.

    .* 

    Array multiplication operator.

    Scalar and matrix exponentiation operator.

    .^ 

    Array exponentiation operator.

    Left-division operator.

    Right-division operator.

    .\ 

    Array left-division operator.

    ./ 

    Array right-division operator.

    Colon; generates regularly spaced elements and represents an entire row or column.

    ( ) 

    Parentheses; encloses function arguments and array indices; overrides precedence.

    [ ] 

    Brackets; enclosures array elements.

    Decimal point.

    … 

    Ellipsis; line-continuation operator.

    Comma; separates statements and elements in a row.

    Semicolon; separates columns and suppresses display.

    Percent sign; designates a comment and specifies formatting.

    Quote sign and transpose operator.

    ._ 

    Nonconjugated transpose operator.

    Assignment (replacement) operator.


    1.1: Operators and Special Characters is shared under a CC BY 1.3 license and was authored, remixed, and/or curated by Brian Vick, Virginia Tech.

    • Was this article helpful?