<div dir="ltr">Hello,<div><br></div><div>Your code is right I also encouter the same problem but you can project on the surface with ft_plot_mesh</div><div><pre class="" style="padding:0.5em;margin-top:0px;font-size:12px;border:1px dashed rgb(204,204,204);color:rgb(0,0,0);overflow:hidden;font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;white-space:pre-wrap;width:640px;text-align:justify;background-color:rgb(247,249,250)">ft_plot_mesh(bnd, 'vertexcolor', m);</pre><pre class="" style="padding:0.5em;margin-top:0px;font-size:12px;border:1px dashed rgb(204,204,204);color:rgb(0,0,0);overflow:hidden;font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;white-space:pre-wrap;width:640px;text-align:justify;background-color:rgb(247,249,250)">bnd is the your source modle and m is avg.pow value</pre><pre class="" style="padding:0.5em;margin-top:0px;font-size:12px;border:1px dashed rgb(204,204,204);color:rgb(0,0,0);overflow:hidden;font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;white-space:pre-wrap;width:640px;text-align:justify;background-color:rgb(247,249,250)">Azeez</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 3:51 PM, Keyvan Mahjoory <span dir="ltr"><<a href="mailto:mahjoory86@gmail.com" target="_blank">mahjoory86@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Dear Fieldtrip Users,<div><br></div><div><br></div><div>I used the surface file "cortex_5124.surf.gii" to restrict sources on cortex. I wonder how I can plot powermaps on surface?</div><div><br></div><div>cfg.surffile=ft_read_headshape('cortex_5124.surf.gii');<br></div><div><br></div><div>even I save it's output in a new .mat file: "sourcemodel.mat" and tried </div><div>cgf.surffile =  'sourcemodel.mat';</div><div><br></div><div>in either case the function "ft_sourceplot"  gives error.</div><div><br></div><div><div><font face="monospace, monospace">cfg = [];</font></div><div><font face="monospace, monospace">cfg.method         = 'surface';</font></div><div><font face="monospace, monospace">cfg.funparameter   = 'avg.pow';</font></div></div><div><font face="monospace, monospace">cfg.funcolormap    = 'jet';<br></font></div><div><font face="monospace, monospace">cfg.surffile='sourcemodel.mat';<br></font></div><div><font face="monospace, monospace">ft_sourceplot(cfg, src)</font><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">In my code I have defined surface vertices and triangles, as well as power per vertex, I wonder What is wrong in my code? </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Many Thanks in advance,</font></div><div><font face="arial, helvetica, sans-serif">Best,</font></div><div><font face="arial, helvetica, sans-serif">Keyvan</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div></div>
</div><br></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">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></blockquote></div><br></div>