<div dir="ltr"><div>Dear Fieldtrip Users,<br></div>I am using fieldtrip plot function, and it was running fine. Last two days back the code is showing some error, and I am not able to figure it out. Could you please help me in this regard. I have attached the screen shot of that error window. Please find the screenshot. <br><br><br><br>Thanks and Regards<img src="cid:ii_15c0bd385db7c667" alt="Inline image 1" style="margin-right: 25px;"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 3:30 PM,  <span dir="ltr"><<a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send fieldtrip mailing list submissions to<br>
        <a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:fieldtrip-request@science.ru.nl">fieldtrip-request@science.ru.<wbr>nl</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:fieldtrip-owner@science.ru.nl">fieldtrip-owner@science.ru.nl</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of fieldtrip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Rotating sensors using ft_transform_sens (Pomper, Ulrich)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Sun, 14 May 2017 11:36:13 +0000<br>
From: "Pomper, Ulrich" <<a href="mailto:u.pomper@ucl.ac.uk">u.pomper@ucl.ac.uk</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: Re: [FieldTrip] Rotating sensors using ft_transform_sens<br>
Message-ID:<br>
        <<a href="mailto:AM5PR01MB2979106D172D9C99CAE4E2E0D2E00@AM5PR01MB2979.eurprd01.prod.exchangelabs.com">AM5PR01MB2979106D172D9C99CAE4<wbr>E2E0D2E00@AM5PR01MB2979.<wbr>eurprd01.prod.exchangelabs.com</a><wbr>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear Julian,<br>
<br>
<br>
Thanks a lot for your help!<br>
<br>
>From looking into the function as you suggested, it seems the transformation matrix is actually 4 dimensional, with one extra dimension for scaling. I managed to rotate the sensors but they are still quite far away from the headvolume.<br>
<br>
I tried using ft_sensorrealign (MEG equivalent of ft_electroderealign) but am getting an errormessage<br>
<br>
<br>
Undefined function or variable "pnt".<br>
<br>
Error in channelposition (line 327)<br>
pnt = pnt(sel2, :);<br>
<br>
<br>
<br>
which I haven't had time to follow up yet. I will post more once I have looked into it.<br>
<br>
Anyway, thanks again for the help so far.<br>
<br>
<br>
Cheers,<br>
<br>
Ulrich<br>
<br>
<br>
<br>
______________________________<wbr>__<br>
From: <a href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.<wbr>nl</a> <<a href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.<wbr>nl</a>> on behalf of Julian Keil <<a href="mailto:julian.keil@gmail.com">julian.keil@gmail.com</a>><br>
Sent: 12 May 2017 08:44<br>
To: FieldTrip discussion list<br>
Subject: Re: [FieldTrip] Rotating sensors using ft_transform_sens<br>
<br>
Dear Ulrich,<br>
<br>
could you use ft_electroderealign with the interactive-option instead?<br>
Here you have an graphic interface that lets you rotate the electrodes in all directions to match your headshape.<br>
ft_transform_sens is used in this function, so the output should be the same.<br>
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.<br>
<br>
I hope this helps,<br>
<br>
Julian<br>
<br>
<br>
Am 11.05.2017 um 19:21 schrieb Pomper, Ulrich:<br>
<br>
Dear Listmembers,<br>
<br>
Could someone please explain how to use ft_transform_sens in order to rotate sensors around a given axis?<br>
For example, how would the input variable 'transform' need to look like in order to perform a 90 degree rotation around the z-axis?<br>
<br>
Many thanks,<br>
Ulrich<br>
<br>
______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><<wbr>mailto:<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><wbr>><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170514/c4c91a75/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/<wbr>pipermail/fieldtrip/<wbr>attachments/20170514/c4c91a75/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br>
<br>
End of fieldtrip Digest, Vol 78, Issue 13<br>
******************************<wbr>***********<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Laxmi Shaw</div><div>Research Scholar(PhD)</div><div>IIT Kharagpur</div><div>West Bengal</div><div>Ph no-08388837821</div><div><br></div></div></div></div></div>
</div>