The expression d=-20:1:360 creates an array d with values ranging from -20 to 360 with a step size of 1. The resulting array would have 381 elements.
In general, the start:step:end syntax in MATLAB creates a range of values starting from start and incrementing by step until reaching or going beyond end.
gistlibby LogSnag