view aim-mat/tools/@signal/getxvalues.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
children 20ada0af3d7d
line wrap: on
line source
function vals=getxvalues(sig)
% return all x values of the signal in one vector

sr=getsr(sig);
time_null=getminimumtime(sig);
time_max=getmaximumtime(sig);
vals=[time_null:1/sr:time_max];
% correction:
vals=vals(1:length(getvalues(sig)));
vals=vals';