[FieldTrip] Problem with reading fMRI nifti file

Anke Ninija Karabanov anke at nexs.ku.dk
Wed Dec 29 23:45:14 CET 2021


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.

Best
Anke

On 29 Dec 2021, at 23.43, Anke Ninija Karabanov via fieldtrip <fieldtrip at science.ru.nl> wrote:

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.

Best
Anke

On 29 Dec 2021, at 23.42, Anke Ninija Karabanov via fieldtrip <fieldtrip at science.ru.nl> wrote:

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.

Best
Anke

On 29 Dec 2021, at 23.41, Anke Ninija Karabanov via fieldtrip <fieldtrip at science.ru.nl> wrote:

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.

Best
Anke

On 29 Dec 2021, at 23.39, Anke Ninija Karabanov via fieldtrip <fieldtrip at science.ru.nl> wrote:

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.

Best
Anke

On 29 Dec 2021, at 23.36, Anke Ninija Karabanov via fieldtrip <fieldtrip at science.ru.nl> wrote:

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.

Best
Anke

On 22 Dec 2021, at 09.57, 姜文浩 via fieldtrip <fieldtrip at science.ru.nl> wrote:

Dear fieldtrippers.


I am currently new to fieldtrip, and would like to analysis fMRI data with the toolbox.


I started by following the instructions on "Getting started with fMRI timeseries data" (https://www.fieldtriptoolbox.org/getting_started/fmri/). However, when executing the command

filename4d = 'sub-01_ses-mri_task-facerecognition_run-01_bold.nii';
volume4d = ft_read_mri(filename4d, 'outputfield', 'functional');
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.



Moreover, when I proceeded with the remaining code trying to represent the 4D timeseries data as a source representation, I got an error saying
Arrays have incompatible sizes for this operation.
Error in ft_sourceplot>cb_redraw (line 1550)
if any([xi yi zi] > functional.dim) || any([xi yi zi] <= 0)

Error in ft_sourceplot (line 1106)
    cb_redraw(h);



 How can I fix the problem?


Thanks in advance!
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WhAOMX2Ph9NNw7%2B28J2wLfApbNkmLBqKMEZB%2FHxrboQ%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7Cdb4aea51fbd449af347e08d9c5293f4f%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637757603230240157%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XeZ9X4fbdMcMblQiMKSdaQMsGTBuOY1LK0XhJT1y918%3D&reserved=0
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7C6601da1a4a6b4c8bdf0f08d9cb1be0e2%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764142868499755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=M0xjzClUaQmAMWKNtcCnalSc%2FORe6x%2BfSclTVIjlYBo%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7C6601da1a4a6b4c8bdf0f08d9cb1be0e2%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764142868499755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Yf69xyIYB90ut2DL1MsH1miK%2B6aZHpW9UDeMaHpheWY%3D&reserved=0
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7C1d8545fc5c7a4c03eb8108d9cb1c3709%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764144306406862%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FpN5RWOAwp7pc%2Buw60wLfakKI1G52%2Fsb0sroRnJ1GRM%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7C1d8545fc5c7a4c03eb8108d9cb1c3709%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764144306406862%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=5WoLbNf6NzOKurgAfanB6%2FMlIx3FWV7JryOmnjGl%2FH8%3D&reserved=0
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7C4122788432d24798f3af08d9cb1c8647%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764145644581835%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=c8R50hknBC%2B6bC0AdjpZSVgphj6uTYdeQwqVh9NjuSw%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7C4122788432d24798f3af08d9cb1c8647%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764145644581835%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QiR4gDm88vXa4GjOUrC2avTOCEEx4lIxesatLyPPC10%3D&reserved=0
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7C1315b6e5b0e24bad286608d9cb1cb114%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764146363439884%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rzJYL2FFnD0QfrWG4HZF3T6rkNM39WwnDD5IlbtVpME%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7C1315b6e5b0e24bad286608d9cb1cb114%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764146363439884%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9vP5%2FMa7%2FDY3tUWPm%2BvejeLWT8YlS3X8ds0ydyJXiD4%3D&reserved=0
_______________________________________________
fieldtrip mailing list
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Canke%40nexs.ku.dk%7Cdf297100798d45d9290608d9cb1cdc54%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764147081305168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Xvvm2hTSA%2BOCUWgSP%2FF9dsiM6tQyHP2sfvDwRiz1cJM%3D&reserved=0
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Canke%40nexs.ku.dk%7Cdf297100798d45d9290608d9cb1cdc54%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637764147081305168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=V8SYS7JnPMP7iO0C99e6%2BbiO5Ht3CBnqZpCT6sGUQog%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20211229/52879c8f/attachment-0001.htm>


More information about the fieldtrip mailing list