<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Aalina,
<div><br>
</div>
<div>This relates to an external toolbox that is not maintained by the FieldTrip team. See <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ffaq%2Fexternal%2F&data=05%7C01%7Cfieldtrip%40science.ru.nl%7C4358dd33af414b970f2208dbe1fdb24a%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638352251954225950%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8ZkTZDkX%2F5LyEdscN52UaA62ciT2qDwiq3JyBQnV3RU%3D&reserved=0" originalsrc="https://www.fieldtriptoolbox.org/faq/external/" shash="yW4rzLA7fWE8en5m3h2YdBx3JLHbC21HbtfKKavmdRxUt9RJs2u6OhuRH4WGZP61DJMcegTZWOdT4m0SLK3MebPio8DZHUu7+qBQmhWuOXfq9MKGIiQllfHrpglyIy8wBeCH/mOAOrkkZFC7I9FEtMzjmnf1cNIE4gC7mEQQ4GU=">https://www.fieldtriptoolbox.org/faq/external/</a> and
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffieldtrip%2Ffieldtrip%2Fblob%2Fmaster%2Fexternal%2FREADME&data=05%7C01%7Cfieldtrip%40science.ru.nl%7C4358dd33af414b970f2208dbe1fdb24a%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638352251954225950%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1dDJw%2B0gZLKLHr7uKLhqGQIhRzoHdHZd%2FTA1jgtpBUo%3D&reserved=0" originalsrc="https://github.com/fieldtrip/fieldtrip/blob/master/external/README" shash="ww7o2wQIF5tBPqxlR544Yda/rkslxnnChK2kR8ngcGobe1rMzhFTw23gOkhTdRP8cVGi5jIUa8zkEUQVm1jsGedkYex+0idQCkGh3F1MGXLvrFt4UqyyRUuL4qzyFvzAk8vfAc8trMIJ7C+0BW0ZxBQ76nMoN90MGhe4WA05pBY=">
https://github.com/fieldtrip/fieldtrip/blob/master/external/README</a>. </div>
<div>The best way to get this resolved is by contacting the AFNI authors.</div>
<div><br>
</div>
<div>As a work-arond, you may want to exclude the AFNI toolbox from your package, FieldTrip will largely work without it. </div>
<div><br>
</div>
<div>Or you can fix teh syntax error in the function (the original seems to be here: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzsaad%2Fafni_matlab%2Fblob%2Fmaster%2Fsrc%2FMATVEC_to_WARP.m&data=05%7C01%7Cfieldtrip%40science.ru.nl%7C4358dd33af414b970f2208dbe1fdb24a%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638352251954225950%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XMR1z19FZ7FtT6j0J7v%2F2im0TSYw%2B%2FG2OkLd0Tm1Wcw%3D&reserved=0" originalsrc="https://github.com/zsaad/afni_matlab/blob/master/src/MATVEC_to_WARP.m" shash="pA4rzhHND4HfzvZkSoCRoqysNtLd/Nl5vSEuEGnOwHjlVu3rIk9Fbc8/VRDfvNdFWVgBWLtyS8kbs71yHYyjKYF/ikrJLWIRuLP7ieLQQNPe9HO/ugNb/hq63PUPTZLQ3VNpj0lGqKuiqgKJ64wL9Ism0pkb9M4fHgeSQWN5+lA=">https://github.com/zsaad/afni_matlab/blob/master/src/MATVEC_to_WARP.m</a>).
The function does not have a proper declaration. If you change the first line into "function [Wd] = MATVEC_to_WARP(matvec)” I suspect it will work.</div>
<div><br>
</div>
<div>best regards,</div>
<div>Robert</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<blockquote type="cite">
<div>On 9 Nov 2023, at 21:29, Aalina Jaudet Bilal via fieldtrip <fieldtrip@science.ru.nl> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="ltr">Hello everyone,
<div><br>
</div>
<div>Hope this message finds you well. I am new to both MATLAB and to FieldTrip, and I was running into an issue packaging FieldTrip. I have MATLAB 2023A and I tried using a few different versions of FieldTrip all resulting in the same error. I have attached
a picture below. It would be greatly appreciated if someone could help me with this!</div>
<div><br>
</div>
<div>Best, </div>
<div>Aalina Bilal</div>
</div>
<span id="cid:f_lorn5xu70"><image.png></span>_______________________________________________<br>
fieldtrip mailing list<br>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
https://doi.org/10.1371/journal.pcbi.1002202<br>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>