How to separate a signal into 4 second segments?

2 次查看(过去 30 天)
Lets say I have an ECG signal and I want to separate it 4 second segments. How to do it in MATLAB?
% MATLAB Code
load ('C:\Users\Explorer\Documents\MATLAB\PhysioNet_Database\Malignant_Ventricular_Ectopy_Database\418m.mat');
signal=val(1,:);
plot(signal)
xlabel('Time')
ylabel('Voltage')

采纳的回答

Walter Roberson
Walter Roberson 2016-1-26
If you have the signal processing toolbox, see buffer(), provided the signals are equally spaced in time.
  3 个评论
Star Strider
Star Strider 2016-1-27
The Physionet EKGs are all sampled at constant time intervals, but the intervals are different in different records. The sampling frequencies and other data for each record are all available in the database.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ECG / EKG 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by