フィルターのクリア

DIVIDING A SIGNAL INTO SHORTER SEGMENTS AND SAVING THEM

8 ビュー (過去 30 日間)
SSG_newbiecoder
SSG_newbiecoder 2018 年 3 月 7 日
コメント済み: Anusshree 2023 年 12 月 19 日
Hello, I have a signal of 30 minutes duration. It is a csv file. I want to divide it into non overlapping segments of 10 sec duration and save them as different recordings. The sampling frequency of the signal is 360 Hz. How can I achieve this in matlab?
  6 件のコメント
NICOLE MIN
NICOLE MIN 2020 年 6 月 1 日
how can i segemnt a 1 hour length ech signal into 1 min 2 min and 5 min?
NICOLE MIN
NICOLE MIN 2020 年 6 月 1 日
how can i segment 1 hr length ecg signal into 1 min 2 min and 5 min. thanks

サインインしてコメントする。

採用された回答

Jan
Jan 2018 年 3 月 7 日
Folder = 'E:\data_Lab\MITBIH\edited\';
X = xlsread('E:\data_Lab\MITBIH\edited\100.csv');
X1 = X(:,1);
t1 = 1;
t2 = 3600;
k = 1;
while t2 <= 651600
new_seg = X1(t1:min(t2,length(X1)));
File = sprintf('Part%04d.csv', k);
csvwrite(fullfile(Folder, File), new_seg);
t1 = t1 + 3600;
t2 = t2 + 3600;
k = k + 1;
end
  3 件のコメント
kalana jayasekara
kalana jayasekara 2020 年 5 月 25 日
can u plz tell me how to do exact same thing by input mp3 format file and take out put as mp3 file?
Anusshree
Anusshree 2023 年 12 月 19 日
Can you please tell me how to divide a one hour .mat signal into 2 minute segments and store it in a seperate folder?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Events についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by