x=1:100;
creates a row vector x
containing values from 1 to 100 in increments of 1. It is equivalent to the command x=[1 2 3 ... 99 100];
, but using the :
operator for creating an array of consecutive values is more efficient and less error-prone.
gistlibby LogSnag