Octave

zeros(rows, elements)

ones(rows, elements)

linspace(first, last, count)

logspace(first, last, count)