# linspace

## Purpose

Generate linearly spaced vectors.

## Synopsis

    y = linspace(x1,x2)
    y = linspace(x1,x2,n)

## Description

`linspace` generates linearly spaced vectors. It is similar to the colon operator ":", but gives direct control over the number of points.

`y = linspace(x1,x2)` generates a vector `y` of 100 points linearly spaced between `x1` and `x2.`

`linspace(x1,x2,n)` generates `n` points.

## See Also

    :, logspace

(c) Copyright 1994 by The MathWorks, Inc.