The let command is used to assign vectors.
let [vecname [= expr]]With no arguments, the list of vectors from the current plot is printed, similar to the display command. If an argument appears without an assignment, the value of the named vector is printed. Otherwise, a vector is created with name vecname and value given by the expression expr. None of the vector options such as default scale, color, etc. that are read from the rawfile are preserved when a vector is created in this manner.
The syntax let a[3] = vec is valid. If vec is a vector, then a[3] = vec[0], a[4] = vec[1], etc., If undefined, a is defined, and new entries that are not explicitly set are zeroed. The length of a is set or modified to accommodate vec. The syntax a[0] = vec is also valid, and is equivalent to a = vec. If vec is a vector, then a is a copy of vec. If vec is a scalar (unit length vector), then a is also a scalar with the value of vec.
The units suffix of a constant value is used to assign the units of any vector to which the constant is assigned. This means, for example, in
let a = v(1)/15oa has units of current (A). Use the settype command without arguments to see a list of recognized types.
If alpha characters appear after a number, the initial characters are checked as a scale factor. Recognized sequences are ``t, g, k, u, n, p, f, m, meg, mil''. Remaining characters are parsed as a units string. This is all case insensitive.
The ``let'' is actually optional; the let command will be applied to a line with the second token being ``=''. This is somewhat less efficient, however.