<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>did you add the simnibs matlab functions to your Matlab search
      path?</p>
    <p>There's a "matlab" subfolder in the simnibs installation
      directory which you need to add. You can try typing
      "mesh_save_gmsh4", if that is also not found, then the missing
      search path is likely the reason.<br>
    </p>
    <p>Best,</p>
    <p>Axel</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 18-04-2022 11:32, Sauch McFarlane
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALFED7d9fiaNM23_idhOyJR7_-_hBFXL0AzaNS=h7bnNHetS6A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Good afternoon, 
        <div><br>
        </div>
        <div>I hope you're doing well. I'm not sure if this sent
          correctly the first time, so I'm re-sending it now.</div>
        <div><br>
        </div>
        <div>I've been looking through your documentation on the
          Uncertainty Quantification and I'm having some trouble with
          the MATLAB code examples provided on the website (<a
href="https://simnibs.github.io/simnibs/build/html/tutorial/advanced/uq.html"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://simnibs.github.io/simnibs/build/html/tutorial/advanced/uq.html</a>)</div>
        <div><br>
        </div>
        <div>MATLAB throws up an error at the very first line of the
          script "s = sim_struct('SESSION');" with the error</div>
        <div> "Undefined function or variable 'sim_struct'.</div>
        Error in UncertaintyQALL (line 8)<br>
        s = sim_struct('SESSION');"
        <div><br>
        </div>
        <div>So far, I've tried with and without a capital S because the
          different pages on the website are inconsistent about this,
          and all other changes I have attempted have been fruitless.
          Can you advise on how to fix this error?</div>
        <div><br>
        </div>
        <div>Many thanks,</div>
        <div>Sauch</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sat, 16 Apr 2022 at 16:38,
          Sauch McFarlane <<a href="mailto:vesanusx@gmail.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">vesanusx@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Good afternoon, 
            <div><br>
            </div>
            <div>I hope you're doing well. </div>
            <div><br>
            </div>
            <div>I've been looking through your documentation on the
              Uncertainty Quantification and I'm having some trouble
              with the MATLAB code examples provided on the website (<a
href="https://simnibs.github.io/simnibs/build/html/tutorial/advanced/uq.html"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://simnibs.github.io/simnibs/build/html/tutorial/advanced/uq.html</a>)</div>
            <div><br>
            </div>
            <div>MATLAB throws up an error at the very first line of the
              script "s = sim_struct('SESSION');" with the error</div>
            <div> "Undefined function or variable 'sim_struct'.</div>
            Error in UncertaintyQALL (line 8)<br>
            s = sim_struct('SESSION');"
            <div><br>
            </div>
            <div>So far, I've tried with and without a capital S because
              the different pages on the website are inconsistent about
              this, and all other changes I have attempted have been
              fruitless. Can you advise on how to fix this error?</div>
            <div><br>
            </div>
            <div>Many thanks,</div>
            <div>Sauch</div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Simnibs-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simnibs-discuss@drcmr.dk">Simnibs-discuss@drcmr.dk</a>
<a class="moz-txt-link-freetext" href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Dr. Axel Thielscher
Professor of Neurophysics and Neuroimaging
Danish Research Center for Magnetic Resonance
Copenhagen University Hospital Hvidovre
DK-2650 Hvidovre, Denmark
<a class="moz-txt-link-abbreviated" href="http://www.drcmr.dk">www.drcmr.dk</a>
&
Department of Health Technology
Technical University of Denmark
DK-2800 Kgs. Lyngby
<a class="moz-txt-link-freetext" href="http://www.healthtech.dtu.dk/">http://www.healthtech.dtu.dk/</a></pre>
  </body>
</html>