<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I am working with field trip to create a topological map for our EEG mini-cap we use to collect auditory evoked potentials from chinchillas. </div>
<div class=""><br class="">
</div>
<div class="">Our data is saved into bdf file format (i.e. via Biosemi). I’ve gone through all the help pages I can find to try to assist me with figuring this out and I am still stuck.</div>
<div class=""><br class="">
</div>
<div class="">To summarize my problem, I first created a new layout to match the EEG mini-cap using ft_prepare_layout. My resulting layout is attached in the jpeg below.That seemed to work and I saved this layout as a mat file. Next, I tried loading in a bdf
 file and plotting the response topologically onto the layout that I had just created. For some reason, when I load in the bdf file, it is not able to locate the data (in ft_plot_vector both hdat and vdat are empty zero vectors). The webpage about bdf files
 mentioned that the data is located in the header but I’m not sure how to specifically access that, as I thought it would automatically be able to locate the data inside the bdf file.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Head figure:</div>
<div class=""><img apple-inline="yes" id="F56A536B-29E4-4030-983C-98EC8BD83909" src="cid:C2426E86-7C15-41D0-8FA3-5425F19BB6D7@hsd1.in.comcast.net" class=""></div>
<div class=""><br class="">
</div>
<div class=""><u class="">Code I used below:</u></div>
<div class=""><br class="">
</div>
<div class="">filename = 'try1.bdf';<br class="">
cfg.dataset = filename;<br class="">
cfg.trialdef.eventtype  = 'STATUS';<br class="">
cfg = ft_definetrial(cfg);<br class="">
<br class="">
cfg.demean = 'yes';<br class="">
cfg.baselinewindow = [-0.2 0];<br class="">
data = ft_preprocessing(cfg);</div>
<div class=""><br class="">
</div>
<div class="">data2 = ft_selectdata(cfg,data);<br class="">
<br class="">
[timelock] = ft_timelockanalysis(cfg, data2);<br class="">
<br class="">
cfg.layout = layout_chincap;<br class="">
cfg.colorbar='yes';<br class="">
ft_topoplotER(cfg, timelock)</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>—> but i get an error:</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Index exceeds the number of array elements (0).<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>Error in ft_plot_vector (line 227)<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>if vlim(1)==vlim(2)<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>—> when I put a breakpoint there and debugged to that spot, I could see that vdat is an empty vector
<span class="Apple-tab-span" style="white-space:pre"></span>and I believe that is where the data should be stored once it is found inside the bdf file<br class="">
<img apple-inline="yes" id="C17242B9-8375-4FD1-8232-7365105FD344" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" src="cid:DEAB5C23-6A03-4613-949A-0C7F0E7CD68C@hsd1.in.comcast.net" class=""><br class="">
<br class="">
Please let me know if you could help at all with any of this! </div>
<div class="">My goal is to reproduce a figure similar to this but using the layout I created specific to the EEG mini-cap we use.<br class="">
<div class=""><img apple-inline="yes" id="9FC63B54-C1FB-46EB-A0DD-D6264C023996" src="cid:E94C1817-A9A0-4C6A-97B6-E6615270361A@hsd1.in.comcast.net" class=""></div>
<div class=""><br class="">
</div>
<div class="">You can email me at <a href="mailto:hginsber@purdue.edu" class="">hginsber@purdue.edu</a> if you have any advice and/or knowledge that you think could help me solve this problem.</div>
<div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Thanks! </div>
</div>
<div class="">Hannah</div>
<div class=""><br class="">
</div>
<div class="">
<div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
___________________________</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hannah Ginsberg</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Graduate Research Assistant</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Auditory Neurophysiology & Modeling Lab</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Weldon School of Biomedical Engineering<br class="">
Purdue University: Class of 2020<br class="">
<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</body>
</html>