<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="">
Dear Rasmus,
<div class=""><br class="">
</div>
<div class="">This type of questions are best asked on the fieldtrip discussion list, more info about this is on: <a href="https://www.fieldtriptoolbox.org/discussion_list/" class="">https://www.fieldtriptoolbox.org/discussion_list/</a></div>
<div class=""><br class="">
</div>
<div class="">The reasons for me forwarding this message are:</div>
<div class="">- there are multiple people reading along, so many more brains can help out to provide an answer</div>
<div class="">- rather than dealing with problems on a one-to-one basis, the time I spend on answering questions/fixing problems is much better spent, because 1) other people will learn from it (so they don’t need to ask the question again), and 2) the list’s
archive serves as reference documention, which people can search themselves, and 3) I still have the somewhat vain hope that other people might also occasionally pick up the challenge to answer some of the questions, or to chime in into the discussion.</div>
<div class=""><br class="">
</div>
<div class="">Just to already point you into the direction of an answer, but perhaps other people might want to chime in: I would recommend against using the DMLT toolbox, because it has not actively been supported for a long time. It could be that the basic
functionality is still there, but it is not guaranteed. I would assume that the functionality that is highlighted in the tutorial that you refer to should still work, provided your overall MATLAB environment has correctly been set up. </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">In relation to the MATLAB environment, and specific to the error message that you pasted, it seems that your MATLAB-path is a bit messed up. This resulted in a higher level fieldtrip function (ft_checkdata) to use a copy of a mex-file for the
nanmean function, which is located in the dmlt toolbox. Since this version of the file is out of the control of the fieldtrip maintainers, it is as of yet unclear whether or not the dmlt toolbox will provide you with the functionality that you need. I notice
that in the tutorial an addpath(genpath(<span class="s1" style="font-size: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; caret-color: rgb(33, 37, 41); box-sizing: border-box; color: rgb(64, 112, 160);">'/your-path-to-fieldtrip/external/dmlt’</span><span class="p" style="color: inherit; font-size: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; caret-color: rgb(33, 37, 41); box-sizing: border-box;">), </span>is
executed, which is probably the culprit here, because it adds dmlt with all its subfolders to the matlab path, including the folder that contains the mex-file that causes the error message that you reported.</div>
<div class=""><br class="">
</div>
<div class="">You could do 2 things at this point: either debug your path settings, and see whether you can get the dmlt tutorial to run, or step away from the dmlt toolbox altogether. If you want to apply multivariate analysis in fieldtrip, I recommend to
start with: <a href="https://www.fieldtriptoolbox.org/tutorial/mvpa_light/" class="">https://www.fieldtriptoolbox.org/tutorial/mvpa_light/</a>. Note that this also relies on an external toolbox (so long term support is not guaranteed), but at the moment it
seems to work.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs Schoffelen</div>
<div class=""><br class="">
</div>
<div class=""> </div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 20 Sep 2022, at 11:50, Rasmus Ahmt Hansen <<a href="mailto:sfk384@alumni.ku.dk" class="">sfk384@alumni.ku.dk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Dear Dr J.M. Schoffel,</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">My name is Rasmus Ahmt Hansen and I am</span><span lang="EN-US" class=""><span class="Apple-converted-space"> </span>a master's student at the University of Copenhagen.</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">My supervisor is d Dr. M. Topor.</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">My supervisor and I<span class="Apple-converted-space"> </span></span><span lang="EN-US" class="">work</span><span lang="EN-US" class=""><span class="Apple-converted-space"> </span>in the fieldtrip</span><span lang="EN-US" class="">-</span><span lang="EN-US" class="">toolbox
to analyze our EEG data, and want to perform a Multivariate analysis.</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">We follow this guide<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">"</span><span lang="EN-US" class=""><span class="Apple-converted-space"> </span></span><a href="https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/tutorial/multivariateanalysis/__;!!HJOPV4FYYWzcc1jazlU!6OXnWR3a6VfPRB-WI0_5advQdRDCsJ0PjX5U63gjPQe5IFduIeG7dxi8sQT5ndrAWiSpaS72hCjDqIpUSgoh3SVvYhvd$" style="color: rgb(149, 79, 114); text-decoration: underline;" class=""><span lang="EN-US" class="">https://www.fieldtriptoolbox.org/tutorial/multivariateanalysis/</span></a><span class="Apple-converted-space"> </span><span lang="EN-US" class="">"<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">We encounter problems as the guide uses the DMLT toolbox, which is obsolete, this is confirmed by Marcel van Gerven who was kind enough to help me download it<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-family: "Apple Color Emoji";" class="">😊</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">And the toolbox is developed to work on MATLAB distribution 7.6.0.324 (R2008a)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">We encounter this error<span class="Apple-converted-space"> </span></span><span lang="EN-US" class="">massage</span><span lang="EN-US" class="">:</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
</div>
</div>
</div>
</blockquote>
<blockquote type="cite" class="">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<img border="0" id="Billede_x0020_1" apple-inline="yes" width="419" height="125" src="cid:image001.png@01D8CCE7.2FED1D50" class=""><span style="font-size: 11pt;" class=""> </span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">The reason I'm writing is because I'm hoping you might be able to give me/us some advice to make the tutorial work or if we have to find an alternative.?<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Best wishes Rasmus Ahmt Hansen ^_^</span></div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>