<div dir="ltr">Thanks for your reply and consideration. I know how to save the figures in MATLAB, but my question is specifically related to ft_sourceplot, while using the 'ortho' method, it produces a figure included in 3 dimensional part based on the MRI scan. How can we save only one dimensional of this output? Should I do it manually or in ft_sourceplot there is a configuration because when I used 'surface', it resulted in an error indicating that the coordinate systems do not match.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2024 at 9:20 AM Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</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">Saving figures in matlab can be done in several ways: on the matlab command line you can use the good old print command, with the appropriate input arguments. If you are using a relatively recent matlab version you can use exportgraphics as a command. Alternatively you can also save the figure through the interactive figure menu, which is part of the figure window. Note that saving figures as such is not a functionality that is provided by FieldTrip, it’s basic matlab. Searching in the matlab documentation, stackoverflow or google might give you good directions of what to do.<br>
<br>
Good luck,<br>
Jan-Mathijs<br>
<br>
<br>
> On 20 May 2024, at 00:58, Sina Makhdoomi Kaviri via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>> wrote:<br>
><br>
> To whom it may concern,<br>
><br>
> I hope all is well. I am reaching out to seek your assistance with an issue I am encountering while visualizing source plots using the FieldTrip toolbox, specifically with the ft_sourceplot function. My goal is to save individual plots when using cfg.method = 'ortho'. However, I am facing a challenge when I attempt to use cfg.method = 'surface', which results in an error indicating that the coordinate systems do not match.<br>
><br>
> Given this, my primary objective is to save the individual dimensions of the source plot generated with cfg.method = 'ortho'. I am looking for an efficient way to save these orthogonal views as separate image files.<br>
><br>
> Additionally, if anyone has insights or solutions to address the coordinate system mismatch error encountered with cfg.method = 'surface', that would be extremely helpful.<br>
><br>
> I would greatly appreciate any guidance or recommendations you could provide on this matter. Thank you very much for your time and assistance.<br>
><br>
> Best regards,<br>
> Sina<br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=rfoMpU9tmZsBdpfpRU%2Blccl6sfNW%2BbVk4juf8X0Je%2Bs%3D&reserved=0" rel="noreferrer" target="_blank">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=rfoMpU9tmZsBdpfpRU%2Blccl6sfNW%2BbVk4juf8X0Je%2Bs%3D&reserved=0</a><br>
> <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3A%2Fn7du4lHgNsp2AVetSUjTj2NxfulkB%2F7fTZxP%2BHVs%3D&reserved=0" rel="noreferrer" target="_blank">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3A%2Fn7du4lHgNsp2AVetSUjTj2NxfulkB%2F7fTZxP%2BHVs%3D&reserved=0</a><br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>