<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all, <br>
    <br>
    I found this question from last year and I am having the identical
    situation. Has this ever been solved? I get the exact same error as
    mentioned below. For reference, I am using NFT 2.3 and I am using
    Matlab 2014b. I have tried this with EEGLAB versions 13.0.1b,
    13.5.4b, and 13.6.5b with only adding path to the parent folder (not
    using "genpath"). I have also tried it both with and without an EEG
    file loaded into EEGLAB (meaning the "EEG" struct is present in the
    workspace). Any way I try it, I always get the same error after
    pressing the "Dipole Fitting" button in the NFT GUI. I can't find
    much documentation on using Dipole Fitting through NFT (it isn't in
    the wiki tutorial nor covered in Zeynep's instructional videos) and
    it seems that the EEGLAB DIPFIT 2.x plugin is not meant to handle
    subject specific models/meshes generated by NFT, only normalized MNI
    models. I have successfully generated all the segmentations, source
    spaces, meshes, and electrode co-registration for a single subject,
    and now I just need to run the dipole fitting to their individual
    MRI. <br>
    <br>
    Thanks, <br>
    Grant Hanada <br>
    <br>
    <br>
    <table class="header-part1" border="0" cellpadding="0"
      cellspacing="0" width="100%">
      <tbody>
        <tr>
          <td>
            <div class="headerdisplayname" style="display:inline;">Subject:
            </div>
            Re: [Eeglablist] NFT Dipole Fitting</td>
        </tr>
        <tr>
          <td>
            <div class="headerdisplayname" style="display:inline;">From:
            </div>
            Makoto Miyakoshi <a class="moz-txt-link-rfc2396E" href="mailto:mmiyakoshi@ucsd.edu"><mmiyakoshi@ucsd.edu></a></td>
        </tr>
        <tr>
          <td>
            <div class="headerdisplayname" style="display:inline;">Date:
            </div>
            04/15/2015 10:12 PM</td>
        </tr>
      </tbody>
    </table>
    <table class="header-part2" border="0" cellpadding="0"
      cellspacing="0" width="100%">
      <tbody>
        <tr>
          <td>
            <div class="headerdisplayname" style="display:inline;">To: </div>
            Christopher Toole <a class="moz-txt-link-rfc2396E" href="mailto:ctoole@my.uri.edu"><ctoole@my.uri.edu></a></td>
        </tr>
        <tr>
          <td>
            <div class="headerdisplayname" style="display:inline;">CC: </div>
            EEGLAB List <a class="moz-txt-link-rfc2396E" href="mailto:eeglablist@sccn.ucsd.edu"><eeglablist@sccn.ucsd.edu></a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <div class="moz-text-html" lang="x-unicode">
      <div dir="ltr">> and all sub folders of both NFT and EEGLAB are
        in the path.<br>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">This could cause a trouble. Don't use
          recursive addpath to (at least) eeglab subfolders.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Makoto</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Sat, Apr 11, 2015 at 10:12 AM,
            Christopher Toole <span dir="ltr"><<a
                href="mailto:ctoole@my.uri.edu" target="_blank">ctoole@my.uri.edu</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">Could this possibly be an installation
                issue? The only instruction I have found online for this
                step is that NFT integration with EEGLAB is required.
                Could anyone please elaborate? I have put NFT in the
                plugins folder of EEGLAB, and all sub folders of both
                NFT and EEGLAB are in the path. Does this step of NFT
                only work with certain versions of EEGLAB? Thanks in
                advance.
                <div><br>
                </div>
                <div>Chris</div>
              </div>
              <div class="">
                <div class="h5">
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">On Tue, Apr 7, 2015 at 3:31
                      PM, Makoto Miyakoshi <span dir="ltr"><<a
                          href="mailto:mmiyakoshi@ucsd.edu"
                          target="_blank">mmiyakoshi@ucsd.edu</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">Zeynep, here is a question for
                          you about NFT. Could you please help him?
                          <div><br>
                          </div>
                          <div>Makoto</div>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">
                            <div>
                              <div>On Mon, Apr 6, 2015 at 5:39 PM,
                                Christopher Toole <span dir="ltr"><<a
                                    href="mailto:ctoole@my.uri.edu"
                                    target="_blank">ctoole@my.uri.edu</a>></span>
                                wrote:<br>
                              </div>
                            </div>
                            <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>
                                <div>
                                  <div dir="ltr">Dear Listers,
                                    <div><br>
                                    </div>
                                    <div><span
                                        style="font-size:12.8000001907349px">I
                                        am trying to use the NFT plugin
                                        to localize sources in realistic
                                        head models. I have had no
                                        trouble creating models from MR
                                        images and solving the forward
                                        problem with NFT.  However, upon
                                        clicking the Dipole Fitting
                                        button, I receive the error
                                        "Reference to non-existent field
                                        'EEG'." I am aware that ICA
                                        decomposition on the desired EEG
                                        data set must be completed and
                                        have done so in EEGLAB. The set
                                        is loaded prior to clicking the
                                        Dipole Fitting button in the NFT
                                        GUI. Any advice as to why I am
                                        getting this error would be
                                        greatly appreciated.  The error
                                        is as follows:</span><br>
                                    </div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">"Reference
                                        to non-existent field 'EEG'.</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Error
                                        in
                                        Neuroelectromagnetic_Forward_Modeling_Toolbox>pushbutton_ip_Callback
                                        (line 196)</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"> 
                                         
                                        Inverse_Problem_Solution('EEGstruct',handles.EEG,'subjectdir',
                                        handles.SubjectFolder,
                                        'subject', subj_name,</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"> 
                                          'session', ses_name);</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Error
                                        in gui_mainfcn (line 75)</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"> 
                                              feval(varargin{:});</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Error
                                        in
                                        Neuroelectromagnetic_Forward_Modeling_Toolbox
                                        (line 61)</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"> 
                                          gui_mainfcn(gui_State,
                                        varargin{:});</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Error
                                        in</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">@(hObject,eventdata)Neuroelectromagnetic_Forward_Modeling_Toolbox('pushbutton_ip_Callback',hObject,eventdata,guidata(hObject))</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"> </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Error
                                        while evaluating uicontrol
                                        Callback"</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Any
                                        advice for getting the "dipole
                                        fitting"  step to work?</span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px"><br>
                                      </span></div>
                                    <div><span
                                        style="font-size:12.8000001907349px">Thanks,</span></div>
                                    <div><br>
                                    </div>
                                    <div>
                                      <div
                                        style="font-size:12.8000001907349px">Christopher
                                        Toole</div>
                                      <div
                                        style="font-size:12.8000001907349px">PhD
                                        student, Interdisciplinary
                                        Neuroscience Program</div>
                                      <div
                                        style="font-size:12.8000001907349px">University
                                        of Rhode Island</div>
                                      <div
                                        style="font-size:12.8000001907349px"><a
href="mailto:ctoole@my.uri.edu" target="_blank">ctoole@my.uri.edu</a></div>
                                    </div>
                                  </div>
                                  <br>
                                </div>
                              </div>
_______________________________________________<br>
                              Eeglablist page: <a
                                href="http://sccn.ucsd.edu/eeglab/eeglabmail.html"
                                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><span><font
                                  color="#888888"><br>
                                </font></span></blockquote>
                          </div>
                          <span><font color="#888888"><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>
                            </font></span></div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </div>
    <br clear="all">
    <div><br>
    </div>
    <br>
    <br>
  </body>
</html>