1 hour of ECG signal to be splitted into 10 sec in mat format

3 visualizzazioni (ultimi 30 giorni)
I need to splitted my ECG to 10 second each Mat file rathar than having one hour in one mat file how can I do that?

Risposte (1)

Star Strider
Star Strider il 19 Apr 2022
Use the buffer function —
seclen = 10; % Length = 10 Seconds
Fs = 256; % Sampling Frequency (Hz)
EKG = randn(1,3600*Fs); % EKG Record
EKG10 = buffer(EKG, Fs*seclen)
EKG10 = 2560×360
0.6259 1.6104 0.3007 0.0701 0.0223 0.1869 -0.8090 -0.5887 -0.1726 -1.6281 -0.1501 0.7086 -0.9062 -1.3424 -2.2977 -0.1438 0.1697 -1.5134 -1.3084 -0.6281 0.5356 0.1468 -0.6479 -0.4008 -1.7741 0.4910 -0.4799 0.1403 0.3201 0.5628 0.1509 -0.3838 0.1643 1.1476 -0.3384 0.8116 -0.1499 0.7954 0.6588 -0.0822 0.5967 -0.3537 -1.5426 -0.7889 0.3987 1.5026 0.3730 -0.1263 0.0027 -0.0570 -0.0647 -0.3515 -0.4886 1.6539 -1.2453 -0.1293 -1.9008 1.4504 0.5940 -0.1127 -0.4364 0.3851 1.1154 1.7190 1.1409 -1.2968 -0.5866 0.1146 -0.5016 -0.1774 0.5102 0.5669 0.4374 0.5149 0.4921 0.4631 0.0573 0.0030 1.2620 -0.4669 -0.6752 1.3214 1.0747 -0.2012 -1.9036 -1.1550 -0.5060 -1.7636 -1.9185 0.8140 1.1243 0.0651 0.6700 0.0452 -1.0528 -0.1533 -0.0590 -0.2080 -0.6694 0.8300 -0.5873 -0.4792 -0.6400 -2.4886 0.4136 -1.5766 0.0647 0.7438 -1.9390 -0.2960 1.2330 1.4513 0.3989 -1.1394 0.6734 0.1367 -0.1524 0.0668 2.5118 0.5242 -1.3211 0.0539 -0.4794 -0.6811 -0.2174 -1.4697 -2.0710 0.1825 0.2218 0.8991 -1.1401 -0.5365 -1.6000 0.6907 1.2790 -0.6607 0.4091 0.4731 -0.7869 -2.1989 0.4833 -0.8119 -0.0594 0.8820 0.5728 -0.9854 -0.0655 -1.5329 -1.2579 0.1727 0.7621 -0.1026 0.0606 -0.6562 0.4260 -2.2272 -0.1732 0.1540 0.8204 1.9992 1.9833 0.1241 0.2695 -1.1875 0.7090 -0.5979 0.3563 -0.5520 0.2035 -0.8064 -2.2932 -1.4171 -0.3287 0.1550 -0.4189 1.3960 -0.8104 0.1187 -0.3513 0.8532 1.4231 1.0037 -1.1404 -1.1195 -0.9698 -0.4562 0.1056 0.1406 -0.2882 -1.3769 0.2310 1.8528 -0.3887 -1.0346 -0.9677 0.6515 -0.0861 1.5532 1.2708 1.4732 -0.5161 0.6825 0.2031 1.3357 -2.4336 0.4540 2.3390 -0.1726 -0.5113 -0.4904 -0.2435 0.7969 0.4332 -0.2673 -0.2151 -2.1016 -0.6555 -0.1061 0.9469 -1.2525 1.4050 -0.6372 0.2812 1.0388 0.6289 -0.8657 -0.1939 0.9601 0.8025 1.3794 0.6441 0.8980 -2.0471 -0.6782 -0.2455 1.3307 0.9330 0.8637 0.2795 0.2235 -0.7428 -0.9968 0.3060 -1.7089 -0.3059 1.0170 -0.8314 0.1241 -0.8393 -1.1401 1.0285 -0.0049 -0.5649 -0.3186 -0.8053 -1.6561 -1.0353 -0.0982 -0.9904 -0.2280 0.6860 -1.8776 0.6515 1.0527 -0.6422 -0.2473 -0.4707 -0.4604 1.0601 1.1212 -0.3980 0.9173 -0.4180 0.8739 0.3641 0.2580 0.3671 1.1783 0.0684 0.8528 2.2034 0.5731 -0.5811 -1.7401 0.7834 0.4842 -1.2437 0.2918 0.2319 -1.1959 1.6241 -0.4294 -0.6137 -0.1024 -0.5988 1.4419 0.5219 0.0760 1.3627 0.9736
Check = size(EKG10,1)/Fs % Check That Each Column Is 10 Seconds In Length
Check = 10
.

Categorie

Scopri di più su ECG / EKG in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by