LEGNUM Legend current figure using array of numbers. LEGNUM(X) adds a legend to current figure using string representations of the numbers in X. If X is a two- or multi-dimensional array, it will be flattened and all elements will be included. LEGNUM(X, Prec) is the same but uses precision P, where P is an integer. LEGNUM(X, Prec, Prefix) same as above but includes a prefix string to each legend label. LEGNUM(X, Prec, Prefix, Suffix) same as above but includes a prefix and suffix string to each legend label. LEGNUM(X, Prec, Prefix, Suffix, NoPrefix) same as above but includes only a suffix string to each legend label (NoPrefix can be any index- Just for indicator, nothing else). Examples legnum(logspace(-5,-4,7), 6); Adds a legend with logarithmically-spaced number labels, with 6 significant digit precision legnum(logspace(-5,-4,7), 6, 'x = ');% Same but labels are of the form 'x = 1e-5', etc. legnum(5000,4,'x=','m') legnum(5000,4,'x=','m',0)