n=-20:20; % The colon operator (first:last) generates a 1-by-n matrix (or vector) of sequential numbers % from the first value to the last.