summaryrefslogtreecommitdiffstats
path: root/matlab/tools/linspace2.m
blob: 2787fd9655e6d67f91ad5623d8bf91c8d41f9212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function out = linspace2(a,b,c)

%------------------------------------------------------------------------
% out = linspace2(a,b,c)
% 
% Generates linearly spaced vectors 
%
% a: lower limit.
% b: upper limit (exclusive).
% c: number of elements.
% out: linearly spaced vector.
%------------------------------------------------------------------------
%------------------------------------------------------------------------
% This file is part of the
% All Scale Tomographic Reconstruction Antwerp Toolbox ("ASTRA-Toolbox")
%
% Copyright: iMinds-Vision Lab, University of Antwerp
% License: Open Source under GPLv3
% Contact: mailto:astra@ua.ac.be
% Website: http://astra.ua.ac.be
%------------------------------------------------------------------------
% $Id$

out = linspace(a,b,c+1);
out = out(1:end-1);