<html><head><base href="x-msg://23/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Ulrich,<div><br></div><div>could you use ft_electroderealign with the interactive-option instead?</div><div>Here you have an graphic interface that lets you rotate the electrodes in all directions to match your headshape.</div><div>ft_transform_sens is used in this function, so the output should be the same.</div><div>Moreover, if you check the code of ft_electroderealign, it can give you a hint to what the transform-matrix should look like: I think it should be a 3x3-matrix with scale, transform and rotate xyz-vectors.</div><div><br></div><div>I hope this helps,</div><div><br></div><div>Julian</div><div><br></div><div><br><div><div>Am 11.05.2017 um 19:21 schrieb Pomper, Ulrich:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div dir="ltr"><div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; "><span id="ms-rterangepaste-start"></span><div><div style="margin-top: 0px; margin-bottom: 0px; ">Dear Listmembers,</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Could someone please explain how to use ft_transform_sens in order to rotate sensors around a given axis?</div><div style="margin-top: 0px; margin-bottom: 0px; ">For example, how would the input variable 'transform' need to look like in order to perform a 90 degree rotation around the z-axis?</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Many thanks,</div>Ulrich</div><span id="ms-rterangepaste-end"></span><br></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div></span></blockquote></div><br></div></body></html>