Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model array size problem #15

Open
VedaHung opened this issue Mar 18, 2017 · 1 comment
Open

model array size problem #15

VedaHung opened this issue Mar 18, 2017 · 1 comment

Comments

@VedaHung
Copy link

Hello RSA Experts,

I had an experiment with six conditions, each of which had 40 trials.
When I ran RSA model with fMRISearchLight().
Matlab showed the error message "Requested 240x240x54x64x50 (74.2GB) array exceeds maximum array size preference". So, I tried two things:
First, I unchecked "limit the maximun array size preference" and reran the script, which still led to matlab crash.
Second, I modified my model so it evaluates one condition at a time. specifically, the 240240 matrix of the model was reduced to 40240. However, I still got the same error message.
Any help on this issue is appreciated. Thanks.

Best,
Veda

@iancharest
Copy link
Contributor

Hi Veda,

not sure you solved this actually, but this seems like the size of the searchlightRDMs array that matlab is trying to pre-allocate is very large. by the numbers you submit, it sounds like the code thinks that you have 240 conditions (and not 6 like you mention). It tries to create a searchlightRDMs structure of 240x240 x dimx x dimy x dimz, and complains that you don't have enough RAM on your computer to do so.
(dimx = nvoxels in x, dimy = nvovels in y, etc.)

ian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants