<div dir="ltr">Can you provide more information what you are trying to do? <div><br></div><div>The usage is pretty clear from the documentation: the function creates a structure from a set of key-value pairs you provide. For example:</div><div><br></div><div><div>>> cfg = keyval2cfg('dataset', 'mydataset.fif', 'continuous', 'yes')</div><div><br></div><div>cfg = </div><div><br></div><div>       dataset: 'mydataset.fif'</div><div>    continuous: 'yes'</div></div><div><br></div><div>Thus it is basically equivalent to running</div><div><br></div><div><div>>> cfg = [];</div><div>>> cfg.dataset = 'mydataset.fif';</div><div>>> cfg.continuous = 'yes'</div><div><br></div><div>cfg = </div><div><br></div><div>       dataset: 'mydataset.fif'</div><div>    continuous: 'yes'</div></div><div><br></div><div>If you have further questions about the Fieldtrip toolbox, it is best to ask on the Fieldtrip mailing list rather than here.</div><div><br></div><div>Best,</div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div></div>
<br><div class="gmail_quote">On Thu, Jul 9, 2015 at 3:26 PM, Rajyalakshmi Matta <span dir="ltr"><<a href="mailto:rajyalakshmiphd@gmail.com" target="_blank">rajyalakshmiphd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear experts,<br><div><br></div><div>    I am trying to analyze fieldtrip tool box. In keyval2cfg(varargin) what is the input to be supplied. Can anybody please let me know?</div><div><br></div><div><br></div><div>Your help is more delighted</div><div><br></div><div>regards</div><div>M. Rajyalakshmi</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><br></div>M. Rajya Lakshmi<div>Ph D Scholar</div><div>KL University</div><div>Guntur.<br><div><br></div><div><div><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jul 9, 2015 at 12:30 AM,  <span dir="ltr"><<a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send eeglablist mailing list submissions to<br>
        <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://sccn.ucsd.edu/mailman/listinfo/eeglablist" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/mailman/listinfo/eeglablist</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:eeglablist-owner@sccn.ucsd.edu" target="_blank">eeglablist-owner@sccn.ucsd.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of eeglablist digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: EEG AC and DC record problem (Makoto Miyakoshi)<br>
   2. Re: fmrib plugin gradient correction question (Makoto Miyakoshi)<br>
<br><br>---------- Forwarded message ----------<br>From: Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>><br>To: bjj2909102003 <<a href="mailto:bjj2909102003@163.com" target="_blank">bjj2909102003@163.com</a>><br>Cc: eeglablist <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>><br>Date: Tue, 7 Jul 2015 15:15:27 -0700<br>Subject: Re: [Eeglablist] EEG AC and DC record problem<br><div dir="ltr">Dear Booer,<div><br></div><div>If data are recorded in what you call 'AC mode', you can't recover 'DC mode' data. It's like this:</div><div><br></div><div>DC mode data = AC mode data + infraslow signal + DC difference</div><div><br></div><div>I believe when you record data with 'AC mode' the recorder should use high-pass filter that removes infraslow signal and DC.</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 4:18 AM, bjj2909102003 <span dir="ltr"><<a href="mailto:bjj2909102003@163.com" target="_blank">bjj2909102003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:normal">Hi, everyone.</span><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:normal"><font color="#000000" style="margin:0px;padding:0px;border:0px;vertical-align:baseline">Recently, I recorded my EEG data in AC mode. And I made the model based on AC mode data (<span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:'Courier New';font-size:10pt">range centred around zero</span>). Now I want to analyze on-line EEG data by my previous model. But the online data is acquired in DC mode (value is big and not <span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:'Courier New';font-size:13.3333px">centred around zero</span>) by access SDK. I don't know how to convert DC mode data into AC mode data so that I can apply the previous model into the data?</font></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:normal"><font color="#000000" style="margin:0px;padding:0px;border:0px;vertical-align:baseline"><br></font></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:normal"><font color="#000000" style="margin:0px;padding:0px;border:0px;vertical-align:baseline">Thank you.</font></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:normal"><font color="#000000" style="margin:0px;padding:0px;border:0px;vertical-align:baseline">Booer</font></div></div>
<div><br></div><hr style="width:210px;min-height:1px" color="#b5c4df" size="1" align="left"><span><font color="#888888">
<div><span>bjj2909102003</span></div>
</font></span></div><br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>
<br><br>---------- Forwarded message ----------<br>From: Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>><br>To: basile pinsard <<a href="mailto:basile.pinsard@gmail.com" target="_blank">basile.pinsard@gmail.com</a>><br>Cc: EEGLAB List <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>><br>Date: Tue, 7 Jul 2015 15:31:11 -0700<br>Subject: Re: [Eeglablist] fmrib plugin gradient correction question<br><div dir="ltr">Dear Basile,<div><br></div><div>> - having volume markers, is there any interest in switching to slice markers (that I could add myself, the scanner being regular)? Does the gradient template is then computed on slices and windowed on let say 30 slices instead of 30 volumes? Or does this slice splitting is already performed in the software?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">It depends on whether you have identical artifact timecourse for every slice or not. I believe it is not the case. At least in my case, the last slice had visibly different artifact pattern from other slices... probably the first slice is different too. I believe using volume template (i.e. 30-slice long template).</div><div class="gmail_extra"><br></div><div class="gmail_extra">> - I removed the 4 ECG channels recorded from the residual artifact correction as suggested, however, there remains high-frequency content in the signal (see <a href="http://s3.postimg.org/uyzdb2zgj/gradient_correction.png" target="_blank">screenshot</a> with 1 ECG channel and EEG channels) only for these channels. Is that because the correction didn't work that well for these channels ? Is that something that I can fix? Does low-pass filter is compulsory in this step? Why EEG channels are not affected?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">First of all, the primary purpose of having ECG (or EKG if you like a German flavor) is to build artifact template, and what you need is just reliable peak detection. Your data, after cleaning, seems ok for this criterion. Low-pass filtering the ECG/EKG after cleaning is fine (I think fMRIb apply 20Hz low-pass or something when detecting ECG/EKG peaks...sorry if I'm wrong.) The reason why EEG channels are fine is probably that ECG/EKG channels have longer wires and they are less physically stable than those of EEG channels.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 4, 2015 at 12:35 PM, basile pinsard <span dir="ltr"><<a href="mailto:basile.pinsard@gmail.com" target="_blank">basile.pinsard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi EEGlab users,<br><br></div>I am quite new to EEGlab and trying to use the fMRIb plugin to correct from MRI artifacts.<br></div>My questions are:<br><br></div>-
 having volume markers, is there any interest in switching to slice 
markers (that I could add myself, the scanner being regular)? Does the 
gradient template is then computed on slices and windowed on let say 30 
slices instead of 30 volumes? Or does this slice splitting is already 
performed in the software?<br><br></div>- I removed the 4 ECG channels 
recorded from the residual artifact correction as suggested, however, 
there remains high-frequency content in the signal (see <a href="http://s3.postimg.org/uyzdb2zgj/gradient_correction.png" target="_blank">screenshot</a> with 1
 ECG channel and EEG channels) only for these channels. Is that because 
the correction didn't work that well for these channels ? Is that 
something that I can fix? Does low-pass filter is compulsory in this 
step? Why EEG channels are not affected?<br><br></div>Thank you very much for your help and ideas on this.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">basile<br><div><br></div></font></span></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</font></span></div></div><span class="HOEnZb"><font color="#888888">
<br>_______________________________________________<br>
eeglablist mailing list <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
Eeglablist page: <a href="http://www.sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://www.sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsub@sccn.ucsd.edu" target="_blank">eeglablist-unsub@sccn.ucsd.edu</a><br>
To switch to non-digest mode, send an empty email to <a href="mailto:eeglablist-nodigest@sccn.ucsd.edu" target="_blank">eeglablist-nodigest@sccn.ucsd.edu</a><br></font></span></blockquote></div><br></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br></div>