<div dir="ltr">Hi Saeed,<div>could you be more specific by attaching the nesting matrix?</div><div><br></div><div>You find it by typing:</div><div><font color="#0000ff">dbstop if error</font></div><div>in the matlab workspace.</div><div> </div><div>and then by running your script again. The script will stop at the line where it fails and at that point you will be able to look inside the local variables of the subfunction that is returning the error (in your case it is the private function <span style="white-space:pre-wrap"><font color="#0000ff">surface_nesting.m</font></span>).</div><div>Please copy the content of the variables </div><div> <i><font color="#0000ff">nesting</font></i></div><div>and <br></div><div><i><font color="#0000ff"> numboundaries</font></i><br></div><div>in the next email.<br></div><div><br></div><div>At that point I will have enough information to help you. I don't think the normals are a problem here.</div><div><br></div><div>Best regards,</div><div>Cris</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 25, 2016 at 6:08 PM, saeed zahran <span dir="ltr"><<a href="mailto:saeedzahran@hotmail.com" target="_blank">saeedzahran@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div><div dir="ltr">Thank you Cris, but I am sure that the meshes is nested, <br>does it require to calculate the normal for each vertices?<br><br>Best regards<br>Saeed.<br><br><br><div>> From: <a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a><br>> Subject: fieldtrip Digest, Vol 62, Issue 24<br>> To: <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>> Date: Mon, 25 Jan 2016 12:00:02 +0100<span><br>> <br>> Send fieldtrip mailing list submissions to<br>>  <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>       <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/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" target="_blank">fieldtrip-request@science.ru.nl</a><br>> <br>> You can reach the person managing the list at<br>>   <a href="mailto:fieldtrip-owner@science.ru.nl" target="_blank">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></span>>    1. cross-frequency coupling between MEG planar channel        twins?<br>>       (Fr?d?ric Roux)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Mon, 25 Jan 2016 11:55:27 +0100 (CET)<br>> From: Fr?d?ric Roux <<a href="mailto:f.roux@bcbl.eu" target="_blank">f.roux@bcbl.eu</a>><span><br>> To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br></span>> Subject: [FieldTrip] cross-frequency coupling between MEG planar<br>>     channel twins?<br>> Message-ID: <<a href="mailto:1957967079.822957.1453719327381.JavaMail.zimbra@bcbl.eu" target="_blank">1957967079.822957.1453719327381.JavaMail.zimbra@bcbl.eu</a>><br>> Content-Type: text/plain; charset="utf-8"<br>> <br>> Dear all,<br>> <br>> in my MEG-data (Elekta Vectorview System) I am observing that the amplitude of higher frequencies over one planar gradient channel is coupled to the<br>> phase of lower frequencies on its corresponding twin-channel . I am attaching a figure to illustrate this. The upper row shows a low-frequency oscillation for one planar-channel and the bottom row shows the amplitude of a higher-frequency oscillation on its corresponding twin channel. Note that this separation is fairly consistent across other channels as well.<br>> <br>> My question relates to what could explain such a coupling of low and high freq activity over channel-pairs with different gradient orientations (ie vertical vs. horizontal)? <br>> <br>> Could this be an indicator of two separate sources which are being picked up by the different spatial sensitivity of the planar gradients and where the phase of one source modulates the amplitude of the other source?<br>> <br>> Any comments or suggestions on this would be highly appreciated.<br>> <br>> Fred<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> --<br>> Fr?d?ric Roux<br>> Postdoctoral Scientist, Marie-Curie fellow<br>> BCBL. Basque Center on Cognition, Brain & Language.<br>> <br>> <a href="mailto:f.roux@bcbl.eu" target="_blank">f.roux@bcbl.eu</a><br>> Tel: <a href="tel:%2B34%20943%20309%20300%20Ext%20211" value="+34943309300" target="_blank">+34 943 309 300 Ext 211</a><br>> Fax: <a href="tel:%2B34%20943%20309%20052" value="+34943309052" target="_blank">+34 943 309 052</a><br>> <br>> Legal disclaimer/Aviso legal/Lege-oharra: <a href="http://www.bcbl.eu/legal-disclaimer" target="_blank">www.bcbl.eu/legal-disclaimer</a><br>> ---------------------------------------------------------------------------<br>> <br>> ?The probability of success is difficult to estimate; but if we never search the chance of success is zero.?<br>> -------------- next part --------------<br>> A non-text attachment was scrubbed...<br>> Name: low_high_coupling_planar_grads_TFR.png<br>> Type: image/png<br>> Size: 26838 bytes<br>> Desc: not available<br>> URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160125/c41f609c/attachment-0002.png" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160125/c41f609c/attachment-0002.png</a>><br>> -------------- next part --------------<br>> A non-text attachment was scrubbed...<br>> Name: low_high_coupling_planar_grads.png<br>> Type: image/png<br>> Size: 11179 bytes<br>> Desc: not available<br>> URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160125/c41f609c/attachment-0003.png" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160125/c41f609c/attachment-0003.png</a>><span><br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> fieldtrip mailing list<br>> <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>> <br></span>> End of fieldtrip Digest, Vol 62, Issue 24<br>> *****************************************<br></div>                                    </div></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div></div></div>