Hi Tor,
I'm using your genetic algorithm for optimizing fMRI design for the first
time, and really need some help with the scripts. After running the
ga_example_script matlab file it spits out:
Starting Model 1
OptimizeGA
===============================
Saturation threshold = 2
Setting up variables
...contrasts entered; last number is added to account for intercept
contrasts =
1 -1 0
...fyi: Num contrasts does not equal num conditions
...Using rests of length 2 and resting every 6
================== Parameters ======================
Total stimuli in scan : 320
Fixed rest length in ITIs : 2
Fixed Rest stimuli in scan : 78
Num blank intervals : 0
Num of task conds : 2
Num stimuli each cond : 121 121
====================================================
??? Undefined function or method 'getSmoothing' for input arguments of type
'double'.
Error in ==> optimizeGA at 122
[S,Vi,svi] = getSmoothing(HPlength,GA.LPsmooth,TR,numsamps,xc);
Error in ==> ga_example_script at 225
M = optimizeGA(GA);
What could be the problem here?
Thanks,
karen
|