<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text/enriched --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
I will be out of offie from December 21st to 4th of January and will be checking my email only infrequently during this time. I will respond to your email when I return.<br>
<br>
Best<br>
Anke <br>
<br>
On 22 Dec 2021, at 09.57, 姜文浩 via fieldtrip <fieldtrip@science.ru.nl> wrote:<br>
<br>
<div class="EmailQuote"><font face="Times New Roman" color="black">Dear fieldtrippers.</font><font face="SimSun" color="black">
<br>
<br>
<br>
</font><font face="Times New Roman" color="black">I am currently new to fieldtrip, and would like to analysis fMRI data with the toolbox. </font><font face="SimSun" color="black">
<br>
<br>
<br>
</font><font face="Times New Roman" color="black">I started by following the instructions on "Getting started with fMRI timeseries data" (<a href="https://www.fieldtriptoolbox.org/getting_started/fmri/">https://www.fieldtriptoolbox.org/getting_started/fmri/</a>).
 However, when executing the command </font><font face="SimSun" color="black"> <br>
<br>
</font><font face="Courier New" size="+1" color="#191B1E">filename4d </font><font face="Courier New" size="+1" color="#535353">=</font><font face="Courier New" size="+1" color="#191B1E">
</font><font face="Courier New" size="+1" color="#325B8F">'sub-01_ses-mri_task-facerecognition_run-01_bold.nii'</font><font face="Courier New" size="+1" color="#191B1E">;<br>
volume4d </font><font face="Courier New" size="+1" color="#535353">=</font><font face="Courier New" size="+1" color="#191B1E"> ft_read_mri(filename4d,
</font><font face="Courier New" size="+1" color="#325B8F">'outputfield'</font><font face="Courier New" size="+1" color="#191B1E">,
</font><font face="Courier New" size="+1" color="#325B8F">'functional'</font><font face="Courier New" size="+1" color="#191B1E">);<br>
</font><font face="Times New Roman" color="black">I got a resulting struct with the field "anatomy", which is a 4D double, but not "functional" as it supposed to be regarding the manual.</font><font color="black"><br>
<br>
</font><font face="SimSun" color="black"><br>
<br>
</font><font face="Times New Roman" color="black">Moreover, when I proceeded with the remaining code trying to represent the 4D timeseries data as a source representation, I got an error saying</font><font face="SimSun" color="black">
<br>
</font><font face="Times New Roman" color="black">Arrays have incompatible sizes for this operation.</font><font face="SimSun" color="black">
<br>
</font><font face="Times New Roman" color="black">Error in ft_sourceplot>cb_redraw (line 1550)</font><font face="SimSun" color="black"><br>
</font><font face="Times New Roman" color="black">if any([xi yi zi] > functional.dim) || any([xi yi zi] <= 0)</font><font face="SimSun" color="black"><br>
<br>
</font><font face="Times New Roman" color="black">Error in ft_sourceplot (line 1106)</font><font face="SimSun" color="black"><br>
</font><font face="Times New Roman" color="black">    cb_redraw(h);</font><font face="SimSun" color="black"><br>
<br>
<br>
<br>
</font><font face="Times New Roman" color="black"> How can I fix the problem?</font><font face="SimSun" color="black">
<br>
<br>
<br>
</font><font face="Times New Roman" color="black">Thanks in advance!</font><font face="SimSun" color="black">
<br>
</font><font color="black">_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&amp;data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=WhAOMX2Ph9NNw7%2B28J2wLfApbNkmLBqKMEZB%2FHxrboQ%3D&amp;reserved=0">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&amp;data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=WhAOMX2Ph9NNw7%2B28J2wLfApbNkmLBqKMEZB%2FHxrboQ%3D&amp;reserved=0</a><br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&amp;data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=XeZ9X4fbdMcMblQiMKSdaQMsGTBuOY1LK0XhJT1y918%3D&amp;reserved=0">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&amp;data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=XeZ9X4fbdMcMblQiMKSdaQMsGTBuOY1LK0XhJT1y918%3D&amp;reserved=0</a><br>
</font></div>
</body>
</html>