<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Leila,
<div class=""><br class="">
<div class="">I don’t know much about the EDF format, but perhaps you should consider that the ‘hdr’ should probably stay consistent with the data. That is, some data formats have a header that specifies the number of data samples. If you create ‘new’ data
with an extra number of samples, it could be that the header needs to be updated as well.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 05 May 2016, at 16:34, Leila Ayoubian <<a href="mailto:leilayou_54@yahoo.com" class="">leilayou_54@yahoo.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div style="background-color: rgb(255, 255, 255); font-family: garamond, 'new york', times, serif; font-size: 16px;" class="">
<div id="yui_3_16_0_ym19_1_1462458822082_5303" class=""><span class=""></span></div>
<div class=""></div>
<div id="yui_3_16_0_ym19_1_1462458822082_5304" class=""> Hi,</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5373" class="">I am trying to concatenate two EDF files in Matlab and convert it back to EDF. (basically sticking the original data to on piece)</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5374" class="">Here is my code. It does create the 'a' file but it does not open as EDF.</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5375" class="">Any suggestion?</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1462458822082_5376" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5377" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5378" class=""></div>
<div id="yui_3_16_0_ym19_1_1462458822082_5379" class=""> </div>
<div id="yui_3_16_0_ym19_1_1462458822082_5380" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5381" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5382" class="">
<div id="yui_3_16_0_ym19_1_1462458822082_5383" class="">clc;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5384" class="">clear all;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5385" class="">close all;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5386" class="">%%</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5387" class="">[fileName1, pathName1] = uigetfile({'*.edf;*.e', 'Nicolete files (*.edf;*.e)'; '*.*', 'All files (*.*)'}, 'Select edf file');</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5388" class="">file1 = fullfile(pathName1, fileName1);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5389" class="">cfg1 = [];</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5390" class="">%cfg.trl = [1 1000 0];%45min*60=2700 sec % 2700sec*1000=2700000 ms</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5391" class="">cfg1.trialdef.triallength = 5;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5392" class="">cfg1.dataset =file1; %'For leila.edf';</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5393" class="">cfg1= ft_definetrial( cfg1 );</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5394" class="">cfg1.continuous = 'yes';</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5395" class="">datastr1 = ft_preprocessing(cfg1);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5396" class="">data1=datastr1.trial{1,1};</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5397" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5398" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5399" class="">Fs=datastr1.fsample;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5400" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5401" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5402" class="">hdr=datastr1.hdr;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5403" class="">%%</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5404" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5405" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5406" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5407" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5408" class="">[fileName2, pathName2] = uigetfile({'*.edf;*.e', 'Nicolete files (*.edf;*.e)'; '*.*', 'All files (*.*)'}, 'Select edf file');</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5409" class="">file2 = fullfile(pathName2, fileName2);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5410" class="">cfg2 = [];</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5411" class="">%cfg.trl = [1 1000 0];%45min*60=2700 sec % 2700sec*1000=2700000 ms</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5412" class="">cfg2.trialdef.triallength = 5;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5413" class="">cfg2.dataset =file2; %'For leila.edf';</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5414" class="">cfg2= ft_definetrial( cfg2 );</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5415" class="">cfg2.continuous = 'yes';</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5416" class="">datastr2 = ft_preprocessing(cfg2);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5417" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5418" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5419" class="">data2=datastr2.trial{1,1};</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5420" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5421" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5422" class="">Fs2=datastr2.fsample;</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5423" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5424" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5425" class="">% EEG=cat(2,data1,data2)</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5426" class="">% EEG=EEG';</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5427" class="">% HDR=hdr1</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5428" class="">% out=EDFCreator(EEG);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5429" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5430" class="">
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5431" class="">dat = cat(2,data1,data2);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5432" class="">%%</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5433" class="">% write_edf('a', hdr, dat);</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5434" class=""><br clear="none" id="yui_3_16_0_ym19_1_1462458822082_5435" class="">
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1462458822082_5436" class="">ft_write_data('a', dat, 'header', hdr,'dataformat','edf' )</div>
</div>
<div id="yui_3_16_0_ym19_1_1462458822082_5437" class=""></div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1462458822082_5438" class=""> </div>
<div class="signature">
<div class=""><font class="">
<div style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText">
<span style="" class=""><font face="times new roman, new york, times, serif" class=""><font size="2" class="">__________________________________________________</font></font></span></div>
<div style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText">
<span style="" class=""><font face="times new roman, new york, times, serif" class=""><font size="2" class="">Leila Ayoubian, PhD.<br class="">
Institute of Psychiatry, Psychology and Neuroscience<br class="">
King's College London<br class="">
</font></font></span></div>
<div style="margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText">
<font class="Apple-style-span" size="2" face="'times new roman', 'new york', times, serif"><br class="">
</font></div>
</font></div>
<div style="MARGIN:0cm 0cm 0pt;" class="MsoPlainText"><font class=""><font style="" face="bookman old style, new york, times, serif" class=""><font face="bookman old style, new york, times, serif" class=""><font class=""><span style="color:rgb(84, 140, 214);font-size:9pt;font-family:Arial;" lang="EN-US" class=""><span style="font-size:10pt;font-family:sans-serif;" class=""><br class="">
</span></span></font></font></font></font></div>
</div>
<div class="qtdSeparateBR"><br class="">
<br class="">
</div>
<div class="yahoo_quoted" style="display: block;">
<div style="font-family: garamond, new york, times, serif; font-size: 16px;" class="">
<div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class="">
<div dir="ltr" class=""><font size="2" face="Arial" class="">
<hr size="1" class="">
<b class=""><span style="font-weight:bold;" class="">From:</span></b> Arjen Stolk <<a href="mailto:a.stolk8@gmail.com" class="">a.stolk8@gmail.com</a>><br class="">
<b class=""><span style="font-weight: bold;" class="">To:</span></b> FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>>
<br class="">
<b class=""><span style="font-weight: bold;" class="">Sent:</span></b> Tuesday, February 9, 2016 3:32 PM<br class="">
<b class=""><span style="font-weight: bold;" class="">Subject:</span></b> Re: [FieldTrip] importing large edf data<br class="">
</font></div>
<div class="y_msg_container"><br class="">
<div id="yiv2401428310" class="">
<div class="">
<div class=""></div>
<div class="">Hi both,</div>
<div class="">There might be information on the date and time of recording in the orig field of the header, if that's what you're looking for. Don't know the name of the subfield from the top of my head.</div>
<div class="">Arjen</div>
<div class="yiv2401428310yqt3427032068" id="yiv2401428310yqt69890">
<div class=""><br clear="none" class="">
On Feb 9, 2016, at 3:19 AM, Stephen Politzer-Ahles <<a rel="nofollow" shape="rect" ymailto="mailto:stephen.politzer-ahles@ling-phil.ox.ac.uk" target="_blank" href="mailto:stephen.politzer-ahles@ling-phil.ox.ac.uk" class="">stephen.politzer-ahles@ling-phil.ox.ac.uk</a>>
wrote:<br clear="none" class="">
<br clear="none" class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">Hi Leila,<br clear="none" class="">
<br clear="none" class="">
</div>
I'm sorry but I'm afraid I have not quite understood your issue. Can you give some more detail about what the problem is?<br clear="none" class="">
<br clear="none" class="">
</div>
In general, the fieldtrip structure output by ft_preprocessing() should have a .time field (indicating what timepoint during the epoch each sample corresponds to) and an .fsample field indicating the sampling rate (which you would also be able to use to figure
out the time of each sample).<br clear="none" class="">
<br clear="none" class="">
</div>
Best,<br clear="none" class="">
</div>
Steve<br clear="none" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="yiv2401428310gmail_extra"><br clear="all" class="">
<div class="">
<div class="yiv2401428310gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class=""><span class=""></span>
<div class=""><br clear="none" class="">
<br clear="none" class="">
---<br clear="none" class="">
</div>
Stephen Politzer-Ahles<br clear="none" class="">
University of Oxford<br clear="none" class="">
Language and Brain Lab<br clear="none" class="">
Faculty of Linguistics, Phonetics & Philology<br clear="none" class="">
<a rel="nofollow" shape="rect" target="_blank" href="http://users.ox.ac.uk/~cpgl0080/" class="">http://users.ox.ac.uk/~cpgl0080/</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="yiv2401428310gmail_quote">
<div class=""> </div>
<blockquote class="yiv2401428310gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Message: 1<br clear="none" class="">
Date: Mon, 8 Feb 2016 11:51:05 +0000 (UTC)<br clear="none" class="">
From: Leila Ayoubian <<a rel="nofollow" shape="rect" ymailto="mailto:leilayou_54@yahoo.com" target="_blank" href="mailto:leilayou_54@yahoo.com" class="">leilayou_54@yahoo.com</a>><br clear="none" class="">
To: FieldTrip discussion list <<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br clear="none" class="">
Subject: Re: [FieldTrip] importing large edf data<br clear="none" class="">
Message-ID:<br clear="none" class="">
<<a rel="nofollow" shape="rect" ymailto="mailto:1195829915.655104.1454932265573.JavaMail.yahoo@mail.yahoo.com" target="_blank" href="mailto:1195829915.655104.1454932265573.JavaMail.yahoo@mail.yahoo.com" class="">1195829915.655104.1454932265573.JavaMail.yahoo@mail.yahoo.com</a>><br clear="none" class="">
Content-Type: text/plain; charset="utf-8"<br clear="none" class="">
<br clear="none" class="">
Hi Stephen:I just happen to realize that when I load the data as you mentioned below, I can not get hold of the real time of the EEG file. (e.g.18:32:43 ).Could you please point out as how I could retrieve the real time of the EEG file after loading.<br clear="none" class="">
Thanks a lot.Kind regards<br clear="none" class="">
__________________________________________________ Leila Ayoubian, PhD.<br clear="none" class="">
Institute of Psychiatry, Psychology and Neuroscience<br clear="none" class="">
King's College London<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
From: Stephen Politzer-Ahles <<a rel="nofollow" shape="rect" ymailto="mailto:stephen.politzer-ahles@ling-phil.ox.ac.uk" target="_blank" href="mailto:stephen.politzer-ahles@ling-phil.ox.ac.uk" class="">stephen.politzer-ahles@ling-phil.ox.ac.uk</a>><br clear="none" class="">
To: <a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl" class="">
fieldtrip@science.ru.nl</a><br clear="none" class="">
Sent: Friday, December 18, 2015 12:37 PM<br clear="none" class="">
Subject: Re: [FieldTrip] importing large edf data<br clear="none" class="">
<br clear="none" class="">
Hello Leila,<br clear="none" class="">
<br clear="none" class="">
I think there are a few possible options for you. If you're not interested in analyzing high frequencies, then you could import the data one sample at a time, downsampling each channel, and then concatenate the channels into one structure, as described in
<a rel="nofollow" shape="rect" target="_blank" href="http://www.fieldtriptoolbox.org/faq/how_can_i_preprocess_a_dataset_that_is_too_large_to_fit_into_memory" class="">
http://www.fieldtriptoolbox.org/faq/how_can_i_preprocess_a_dataset_that_is_too_large_to_fit_into_memory</a>. I don't know what your sampling rate was, but if your sampling rate was extremely high then this can save you a lot of space. For example, if you're
only interested in frequencies up to high gamma (around 90-100 Hz), then your data only need to be sampled at around 250 Hz (per the Nyquist theorem, plus a little extra wiggle room), so if you sampled at e.g. 2500 Hz (which our EDF system does by default)
or 5000 Hz then you have way more samples than necessary; downsampling like this will greatly reduce your array size.<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
If that is not an option, then you can read in a segment of data as a 'trial'. ft_preprocessing understands trial start and end times from cfg.trl, which minimally is an Nx3 matrix (N is the number of trials to read, and the columns are the start sample for
each trial, the end sample for each trial, and the trigger value associated with the trial; you could just put 0 if there's no trigger). So let's say you want to read the first through thousandth sample of the recording, then you would set up your cfg as normal,
then add:<br clear="none" class="">
<br clear="none" class="">
cfg.trl = [1 1000 0];<br clear="none" class="">
<br clear="none" class="">
and then use ft_preprocessing.<br clear="none" class="">
<br clear="none" class="">
By way of example, here is code that reads in raw data as a series of 1-second "trials":<br clear="none" class="">
<br clear="none" class="">
cfg = [];<br clear="none" class="">
cfg.dataset = 'C:\Users\Steve\Desktop\subj2.vhdr';<br clear="none" class="">
cfg.trialdef.triallength = 1; % see documentation for ft_definetrial for an explanation of these parameters<br clear="none" class="">
cfg.trialdef.ntrials = Inf;<br clear="none" class="">
cfg = ft_definetrial( cfg );<br clear="none" class="">
<br clear="none" class="">
cfg.continuous = 'yes';<br clear="none" class="">
data = ft_preprocessing(cfg);<br clear="none" class="">
<br clear="none" class="">
After doing whatever you need to these trials, you could concatenate them back into continuous data (see
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/pipermail/fieldtrip/2011-June/003971.html" class="">
http://mailman.science.ru.nl/pipermail/fieldtrip/2011-June/003971.html</a> for details).<br clear="none" class="">
<br clear="none" class="">
Best,<br clear="none" class="">
Steve<br clear="none" class="">
<br clear="none" class="">
---<br clear="none" class="">
Stephen Politzer-Ahles<br clear="none" class="">
University of Oxford<br clear="none" class="">
Language and Brain Lab<br clear="none" class="">
Faculty of Linguistics, Phonetics & Philology<br clear="none" class="">
<a rel="nofollow" shape="rect" target="_blank" href="http://users.ox.ac.uk/~cpgl0080/" class="">http://users.ox.ac.uk/~cpgl0080/</a><br clear="none" class="">
On Fri, Dec 18, 2015 at 11:00 AM, <<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-request@science.ru.nl" target="_blank" href="mailto:fieldtrip-request@science.ru.nl" class="">fieldtrip-request@science.ru.nl</a>> wrote:<br clear="none" class="">
<br clear="none" class="">
Send fieldtrip mailing list submissions to<br clear="none" class="">
? ? ? ? <a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl" class="">
fieldtrip@science.ru.nl</a><br clear="none" class="">
<br clear="none" class="">
To subscribe or unsubscribe via the World Wide Web, visit<br clear="none" class="">
? ? ? ? <a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none" class="">
or, via email, send a message with subject or body 'help' to<br clear="none" class="">
? ? ? ? <a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-request@science.ru.nl" target="_blank" href="mailto:fieldtrip-request@science.ru.nl" class="">
fieldtrip-request@science.ru.nl</a><br clear="none" class="">
<br clear="none" class="">
You can reach the person managing the list at<br clear="none" class="">
? ? ? ? <a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip-owner@science.ru.nl" target="_blank" href="mailto:fieldtrip-owner@science.ru.nl" class="">
fieldtrip-owner@science.ru.nl</a><br clear="none" class="">
<br clear="none" class="">
When replying, please edit your Subject line so it is more specific<br clear="none" class="">
than "Re: Contents of fieldtrip digest..."<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
Today's Topics:<br clear="none" class="">
<br clear="none" class="">
? ?1. importing large edf data (Leila Ayoubian)<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
----------------------------------------------------------------------<br clear="none" class="">
<br clear="none" class="">
Message: 1<br clear="none" class="">
Date: Fri, 18 Dec 2015 09:43:43 +0000 (UTC)<br clear="none" class="">
From: Leila Ayoubian <<a rel="nofollow" shape="rect" ymailto="mailto:leilayou_54@yahoo.com" target="_blank" href="mailto:leilayou_54@yahoo.com" class="">leilayou_54@yahoo.com</a>><br clear="none" class="">
To: "<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@science.ru.nl" target="_blank" href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br clear="none" class="">
Subject: [FieldTrip] importing large edf data<br clear="none" class="">
Message-ID:<br clear="none" class="">
? ? ? ? <<a rel="nofollow" shape="rect" ymailto="mailto:807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com" target="_blank" href="mailto:807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com" class="">807603762.476165.1450431823359.JavaMail.yahoo@mail.yahoo.com</a>><br clear="none" class="">
Content-Type: text/plain; charset="utf-8"<br clear="none" class="">
<br clear="none" class="">
Hi:Thanks for providing us with this amazing toolbox.<br clear="none" class="">
I am new to fieldtrip. I am trying to import EEG data in the format of *.edf for the purpose of seizure detection for epileptic patients. I can't break up the data as you understand the detection has to have continuous data. However I could load section of
the data at a time and clear what is already used and reload again.?<br clear="none" class="">
So trying to load the data like this:<br clear="none" class="">
cfg.dataset= ('mydata.edf');<br clear="none" class="">
rawdata=ft_preprocessing(cfg);<br clear="none" class="">
This is the error message I get :<br clear="none" class="">
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br clear="none" class="">
Error using zeros<br clear="none" class="">
Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time<br clear="none" class="">
and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br clear="none" class="">
<br clear="none" class="">
Error in read_edf (line 403)<br clear="none" class="">
? dat = zeros(length(chanindx),nepochs*epochlength);<br clear="none" class="">
<br clear="none" class="">
Error in ft_read_data (line 622)<br clear="none" class="">
??? dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br clear="none" class="">
<br clear="none" class="">
Error in ft_preprocessing (line 566)<br clear="none" class="">
????? dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample, 'endsample', endsample, 'chanindx', rawindx, 'checkboundary',<br clear="none" class="">
????? strcmp(cfg.continuous, 'no'), 'dataformat', cfg.dataformat);<br clear="none" class="">
<br clear="none" class="">
Error in ReadFedfiles (line 8)<br clear="none" class="">
rawdata=ft_preprocessing(cfg);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br clear="none" class="">
I tried the ft_redefinetrial, but since the input to this file is the output from ft-PREPROCESSING it gives me the same error.<br clear="none" class="">
<br clear="none" class="">
<br clear="none" class="">
I also tried to use ft_read_data to choose the samples I want to load :?filename???? = 'mydata.edf'<br clear="none" class="">
?hdr?? = ft_read_header(filename);<br clear="none" class="">
?sample.start=1<br clear="none" class="">
?sample.end=100<br clear="none" class="">
dat = ft_read_data(filename,'sample.start','1','sample.end','100')<br clear="none" class="">
and here is again the error message:<br clear="none" class="">
Error using zeros<br clear="none" class="">
Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a<br clear="none" class="">
long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br clear="none" class="">
<br clear="none" class="">
Error in read_edf (line 403)<br clear="none" class="">
? dat = zeros(length(chanindx),nepochs*epochlength);<br clear="none" class="">
<br clear="none" class="">
Error in ft_read_data (line 622)<br clear="none" class="">
??? dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br clear="none" class="">
<br clear="none" class="">
Error in ReadFedfiles (line 31)<br clear="none" class="">
dat = ft_read_data(filename,'sample.start','1','sample.end','100')<br clear="none" class="">
?<br clear="none" class="">
>><br clear="none" class="">
<br clear="none" class="">
Could you please direct me as to which functions and in which order I should be using the functions to load data in smaller samples.Some examples would be useful.<br clear="none" class="">
Thanks again for your support and assistance.<br clear="none" class="">
We appreciate your effort.<br clear="none" class="">
Kind regards<br clear="none" class="">
<br clear="none" class="">
___________________________________________________ Dr. Leila Ayoubian<br clear="none" class="">
-------------- next part --------------<br clear="none" class="">
An HTML attachment was scrubbed...<br clear="none" class="">
URL: <<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151218/6dfa7ce1/attachment-0001.html" class="">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151218/6dfa7ce1/attachment-0001.html</a>><br clear="none" class="">
<br clear="none" class="">
------------------------------<br clear="none" class="">
<br clear="none" class="">
_____________<br clear="none" class="">
<br clear="none" class="">
</blockquote>
</div>
<br clear="none" class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<blockquote type="cite" class="">
<div class=""><span class="">_______________________________________________</span><br clear="none" class="">
<span class="">fieldtrip mailing list</span><br clear="none" class="">
<span class=""><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a></span><br clear="none" class="">
<span class=""><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></span></div>
</blockquote>
</div>
</div>
<br class="">
<div class="yqt3427032068" id="yqt01195">_______________________________________________<br clear="none" class="">
fieldtrip mailing list<br clear="none" class="">
<a shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br clear="none" class="">
<a shape="rect" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>