Home > GLMdenoise > utilities > linspacecircular.m

linspacecircular

PURPOSE ^

function f = linspacecircular(x1,x2,n)

SYNOPSIS ^

function f = linspacecircular(x1,x2,n)

DESCRIPTION ^

 function f = linspacecircular(x1,x2,n)

 <x1>,<x2> are numbers
 <n> is the number of desired points

 return a vector of equally spaced values starting at <x1>
 and stopping just before <x2> (<x2> is treated as equivalent
 to <x1>).

 example:
 isequal(linspacecircular(0,8,4),[0 2 4 6])

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function f = linspacecircular(x1,x2,n)
0002 
0003 % function f = linspacecircular(x1,x2,n)
0004 %
0005 % <x1>,<x2> are numbers
0006 % <n> is the number of desired points
0007 %
0008 % return a vector of equally spaced values starting at <x1>
0009 % and stopping just before <x2> (<x2> is treated as equivalent
0010 % to <x1>).
0011 %
0012 % example:
0013 % isequal(linspacecircular(0,8,4),[0 2 4 6])
0014 
0015 dif = (x2-x1)/n;
0016 f = linspace(x1,x2-dif,n);

Generated on Fri 01-Aug-2014 12:03:17 by m2html © 2005