<< Resample Cardio Vascular toolbox SPWVD_Analysis >>

Cardio Vascular toolbox >> Cardio Vascular toolbox > ResampleRR

ResampleRR

Resample a RR cardiovalcular signal

Calling Sequence

[tn,xn] = ResampleRR(x,step)

Parameters

x

a real vector. The initial RR signal values (a sequence of time intervals).

step

a real positive scalar. the discretisation time step

tbounds

an optional real vector with 2 elements [tmin,tmax], which can be used to restrict the time interval for resampling. The default value is [0,sum(x)]

tn

a real vector. The time discretization points.

xn

a real vector. The signal values at discretization points: the interpolated interval lengths.

Description

The RR signal is sequence of time delay between two pics in the ECG signal. ResampleRR(x,step) is equivalent to Resample([0,cumsum(x(1:$-1))],step).

Examples

x=[ones(1,10) 2*ones(1,5)]+0.1*rand(1,15);
[tn,xn]=ResampleRR(x,0.1)
clf;plot([0,cumsum(x(1:$-1))],x,"x",tn,xn,'+r')

See Also

Authors

Used Functions

Resample

cumsum


Report an issue
<< Resample Cardio Vascular toolbox SPWVD_Analysis >>