<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="">
Hi all,
<div class=""><br class="">
</div>
<div class="">Sorry Thom that I have to ‘overtoep’ you, but the fieldtrip implementation of the dipole fitting algorithm actually allows for a ‘moving’ or ‘regional’ cfg.model. The regional model is a fixed location with time varying dipole moment. I am not
 sure about a situation with a fixed location, but I could imagine that this might be possible as well. I suggest that prospective users that are interested in the algorithmic details read the documentation to the function, as well as the code (and lower-level
 dependent functions).</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 8 May 2024, at 13:17, Oostendorp, T.F. (Thom) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Sara,
<div class=""><br class="">
</div>
<div class="">I understand now from Jan-Mathijs that this is not implemented in dipolfitting.m. That script calls dipole, but only to make it perform forward computations. The program can also do the inverse, but dipolefitting,m does not implement that.</div>
<div class=""><br class="">
</div>
<div class="">So the show answer to your question is: you cannot.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Thom</div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 8 May 2024, at 12:36, Sara Cinelli via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hello, 
<div class="">I'm Sara and I have a question regarding an answer I obtained from one of you (Thom) regarding the possibility to keep fixed/or not the location and the orientation of the dipole in the inverse modeling. </div>
<div class="">The answer was the following: </div>
<div class=""><br class="">
</div>
<div class="">Actually, the choice is between:<br class="">
- a moving dipole, i.e. at each sample time a new location is fitted<br class="">
- stationary dipole location and  free orientation, i.e. the best single position is fitted, but dipole orientation is free at each sample time<br class="">
- stationary dipole location and stationary orientation, i.e. both location and orientation are fixed in time.<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Looking in the details of the dipolefitting.m it is not clear to me how to implement the third option (for the first I know it has to be used the option cfg.model='moving', for the second cfg.model='regional').</div>
<div class="">Could you help me?</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Sara</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C91ab2f71e900482669a808dc73dbeff1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638512635653112045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=A4H4TXiTgzrz5R6J%2FcJ65iw3XLuLvL2YO8UJd8ewokw%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="My9GgIOR0peIOFadqd8e4OJ1xoi24j0YzvuDyCSTrQXRXiQ0HiAKOKkgvlYoeH9xbxViRXpocpHBczcrm/pEQyfC9kNCaizscshnAtIhUG1+PG0sc3nL+kaL8dEgkr8FnjpEjY+vVWb8+oY9eEGnjrPTflTanH/jWXfnwAcV6v4=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="Ep6DJG5MrGVPTdFDCwZJpsq7ks5lB9SJNSJGyGOnfKXj1Oc2zoDlwwn0V6XZWihjFJL1fljuJovC14u4eGUjmJCEmwu0bqqJYMwTIV8ypyze1xdKL3spd44hnXiKUEUAoHH5GroOz26E1HmMZXAZVc+xe4nmDnhwilbI645Z21o=" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C91ab2f71e900482669a808dc73dbeff1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638512635653112045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=QxkuZFB4cRxDOR76BO%2Ftrq98ywmDmaqEzRobe%2F5KU60%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="nyDpJKXV3EhSzRdYbA590j/V8Ds+RGKTJPFOM6y8JAoTr/9Szr4ShX5a3ghTrlX+NUmsYoPHBQCgBTyo4B9luKGBKJpn5WhpZMGnjbnQR/qzMYVaE8K0OR0GGWrN/WzoNx5mkp8+KnvVjCyJp0PZbP+orNcNod94b1df2I1gbmo=" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">--<br class="">
dr. T.F. Oostendorp          東村      205 Dept. of Cognitive Neuroscience<br class="">
route 219, room 02.282                Donders Center for Medical Neuroscience<br class="">
phone: +31 24 3614240               Radboud University Medical Center<br class="">
Kapittelweg 29                              6525 EN Nijmegen, the Netherlands<br class="">
</div>
</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C91ab2f71e900482669a808dc73dbeff1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638512635653112045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=A4H4TXiTgzrz5R6J%2FcJ65iw3XLuLvL2YO8UJd8ewokw%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="My9GgIOR0peIOFadqd8e4OJ1xoi24j0YzvuDyCSTrQXRXiQ0HiAKOKkgvlYoeH9xbxViRXpocpHBczcrm/pEQyfC9kNCaizscshnAtIhUG1+PG0sc3nL+kaL8dEgkr8FnjpEjY+vVWb8+oY9eEGnjrPTflTanH/jWXfnwAcV6v4=" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>