decorative banner

Vectors as single variables (PB only)


    A single variable can contain all the values of a vector and is treated as a vector. In the following example, the variable P1 is a vector with two dimensions, assigned the values of 12 and 35:

    P1 = {12, 35};

    When assigning values in a vector to a variable, you must separate the values with commas and enclose them with braces.