MBB-team / VBA-toolbox

The VBA toolbox
GNU General Public License v3.0
130 stars 67 forks source link

prepare_fullDCM throws an error when using only Gaussian sources. #20

Closed SRSteinkamp closed 7 years ago

SRSteinkamp commented 7 years ago

Dear all,

I found that, when using only Gaussian source in prepare_fullDCM, line 99 throws an error, as (1:sum([sources.type]~=0)) returns an empty 1x0 matrix:

inG.indr = inG.ind2(end) + (1:sum([sources.type]~=0));

Additionally, there will be no unique offset parameters for other Gaussian observational sources.

Best, Simon

lionel-rigoux commented 7 years ago

Originally, the decoding function was supposed to be:

However, 1) the temperature is correlated with the behavioural mapping parameters, and 2) for all sources we need an additional parameter to offset the behavioural response by an offset.

The new default will then be set to the number of sources minus one (source number one being the BOLD response).

For more complex observation functions, inG.indr and dim.n_phi need to be set by hand by the user.