<div dir="ltr"><div dir="ltr"><div>Just to elaborate a bit on Fangs answer when using an affine transformation no particular order of transformations has to be specified. However, if you require it to be represented as such you can decompose into any order you like (there is a solution for any order - but it will be different for each and unfortunately you have to solve a non-linear system). See for example <a href="https://en.wikipedia.org/wiki/Transformation_matrix">https://en.wikipedia.org/wiki/Transformation_matrix</a>.</div><div>For solving for one particular order you can see for example: <a href="https://github.com/neurodebian/spm12/blob/master/spm_imatrix.m">https://github.com/neurodebian/spm12/blob/master/spm_imatrix.m</a> (Matlab code unfortunately).<br></div><div><br></div><div>Best,</div><div>Kristoffer<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 Sept 2021 at 11:43, Giacomo Bertazzoli <<a href="mailto:giacomo.bertazzoli@unitn.it">giacomo.bertazzoli@unitn.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear all,<div>We would like to know how the output <i>affine transformation matrix</i> (matsimnibs) is obtained when simulating the efield or when doing the coil optimization. In particular we do not understand if that matrix is the result of multiple rotations and in the case in which order they occur (we supposed z-x-y). We need this information because we are trying to assess the difference (in angle) between two coil positions. </div><div>All the very best,</div><div><br></div><div>Giacomo</div><div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>Giacomo Bertazzoli, PhD Candidate</div><div>Cognition Neurostimulation & Connectivity Lab - CIMeC</div><div>University of Trento, Corso Bettini 31, 38068 Rovereto (TN) Italy</div><div>Email: <a href="mailto:giacomo.bertazzoli@unitn.it" target="_blank">giacomo.bertazzoli@unitn.it</a></div><div><a href="https://webapps.unitn.it/du/en/Persona/PER0194098" target="_blank">https://webapps.unitn.it/du/en/Persona/PER0194098</a></div><div><a href="https://www.linkedin.com/in/giacomo-bertazzoli-8737b160/" target="_blank">https://www.linkedin.com/in/giacomo-bertazzoli-8737b160/ </a><br></div></div></div></div></div></div></div>
_______________________________________________<br>
Simnibs-discuss mailing list<br>
<a href="mailto:Simnibs-discuss@drcmr.dk" target="_blank">Simnibs-discuss@drcmr.dk</a><br>
<a href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss" rel="noreferrer" target="_blank">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a><br>
</blockquote></div>