An alternative solution exists using resample(x,p,q) function where the new signal is sampled with p/q times the original sampling frequency, p and q must be integers, here is an example :
y=sin(2*pi*1.5*(0:0.1:10));
y is R^[1x101] with fs=10 Hz, if we want five times the original sampling frequency, say 50Hz :
1 Comment
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/212713-variable-sampling-frequency-interpolation-hrv#comment_281256
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/212713-variable-sampling-frequency-interpolation-hrv#comment_281256
Sign in to comment.