[FieldTrip] Packaging FieldTrip Error

Oostenveld, R. (Robert) robert.oostenveld at donders.ru.nl
Fri Nov 10 15:59:53 CET 2023


Hi Aalina,

This relates to an external toolbox that is not maintained by the FieldTrip team. See https://www.fieldtriptoolbox.org/faq/external/<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> and https://github.com/fieldtrip/fieldtrip/blob/master/external/README<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>.
The best way to get this resolved is by contacting the AFNI authors.

As a work-arond, you may want to exclude the AFNI toolbox from your package, FieldTrip will largely work without it.

Or you can fix teh syntax error in the function (the original seems to be here: https://github.com/zsaad/afni_matlab/blob/master/src/MATVEC_to_WARP.m<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>). 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.

best regards,
Robert


On 9 Nov 2023, at 21:29, Aalina Jaudet Bilal via fieldtrip <fieldtrip at science.ru.nl> wrote:

Hello everyone,

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!

Best,
Aalina Bilal
<image.png>_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20231110/b2e5b74f/attachment.htm>


More information about the fieldtrip mailing list