<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I am trying to learn how to apply the LCMV beamformer to EEG data. To that end I am starting to go through this tutorial:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv?s%5b%5d=lcmv">http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv?s[]=lcmv</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman","serif"">I downloaded the data from this link:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman","serif"">The ft_definetrial and ft_preprocessing functions require the original MEG dataset, which is available
 from <a href="ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/tutorial/SubjectSEF.zip" title="">
<span style="color:blue">ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/tutorial/SubjectSEF.zip</span></a>.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">Then I tried this code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">% find the interesting segments of data<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg                         = [];<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg.dataset                 = 'SubjectSEF.ds';<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg.trialdef.eventtype      = 'Blue';<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg.trialdef.prestim        = .1;        % .1 sec prior to trigger<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg.trialdef.poststim       = .2;        % .2 sec following trigger<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg.continuous              = 'yes';<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New"">cfg = ft_definetrial(cfg);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">and got this output:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Warning: could not determine filetype of SubjectSEF.ds <o:p>
</o:p></p>
<p class="MsoNormal">> In ft_filetype (line 1294)<o:p></o:p></p>
<p class="MsoNormal">  In dataset2files (line 42)<o:p></o:p></p>
<p class="MsoNormal">  In ft_checkconfig (line 557)<o:p></o:p></p>
<p class="MsoNormal">  In ft_definetrial (line 131)<o:p></o:p></p>
<p class="MsoNormal">  In fieldtrip_test_lcmv (line 13) <o:p></o:p></p>
<p class="MsoNormal">Warning: no trialfun was specified, using ft_trialfun_general
<o:p></o:p></p>
<p class="MsoNormal">> In ft_definetrial (line 138)<o:p></o:p></p>
<p class="MsoNormal">  In fieldtrip_test_lcmv (line 13) <o:p></o:p></p>
<p class="MsoNormal">evaluating trialfunction 'ft_trialfun_general'<o:p></o:p></p>
<p class="MsoNormal">Error using ft_read_header (line 2248)<o:p></o:p></p>
<p class="MsoNormal">unsupported header format "unknown"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Error in ft_trialfun_general (line 78)<o:p></o:p></p>
<p class="MsoNormal">hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Error in ft_definetrial (line 177)<o:p></o:p></p>
<p class="MsoNormal">    [trl, event] = feval(cfg.trialfun, cfg);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Error in fieldtrip_test_lcmv (line 13)<o:p></o:p></p>
<p class="MsoNormal">cfg = ft_definetrial(cfg);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So I am totally lost here. Any suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">-Jeff Eriksen<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>