Index-> contents reference index search Up-> SPT_HELP Plotting Functions freqaxis Prev Next SPT_HELP-> SPTFunctionsByCategory Mathematical Functions Data Manipulation Functions SignalGeneratorMain AnalogFilterFunctions FIR Filter Design Window Functions IIR Filter Design FourierFunctions Plotting Functions Histogram Functions Plotting Functions-> fdplot fcplot freqaxis timeaxis freqaxis Headings-> Description Example

Create a frequency axis vector
 Syntax `y = freqaxis(`df,N`)` Include: `include spt\freqaxis.oms` See Also timeaxis
``` ARGUMENTS:      INPUTS:         df = SCALAR, Represents the interval between            successive elements of returned vector.       N  = SCALAR, any numerical type, coerced to INTEGER            before processing. Number of elements in returned            vector.    RETURN: COLUMN VECTOR. N-point linear frequency array, starting at 0(zero), same type as input. ```
Description ``` ```Creates a column vector of N elements, starting at 0(zero) and linearly progressing in steps of 'df'. Return type is same as that of 'df'. N must be >0 or 'novalue' is returned. Useful for creating frequency axis vectors, or vectors used in procedures.

Example
Make a frequency vector of 11 points with 30 Hz spacing. ``` N  = 11; df = 30d0; f  = freqaxis(df,N); f ``` Yields: ``` {   0.00  30.00  60.00  90.00 120.00 150.00 180.00 210.00 240.00 270.00 300.00 } ```