I have a mixed MNE model (cortex = surface, subcortical = volume). I am able to successfully simulate recordings from my surface scouts, but the volume scouts give the following error:
Error using *
Inner matrix dimensions must agree.
Error in bst_simulation (line 164)
F(:,iTime) = HeadModelMat.Gain(:,iSourceRows) * ResultsValues;
Error in panel_scout>ForwardModelForScout (line 3362)
bst_simulation(ResultsFile, iVertices, strScouts);
Is this a bug or is there a special procedure for them?
I just updated and am now not able to simulate from a cortical surface scout in a mixed model. Is this a quick fix?
BST> Simulation: Using head model file "S11CC_copy/@intra/headmodel_mix_os_meg.mat"
Error using *
Inner matrix dimensions must agree.
Error in bst_simulation (line 168 )
F(:,iTime) = HeadModelMat.Gain(:,iSourceRows) * ResultsValues;
Error in panel_scout>ForwardModelForScout (line 3383)
bst_simulation(ResultsFile, iVertices, strScouts, isVolumeAtlas);
Aren’t you trying to run the simulation using the surface scout instead of the corresponding volume scout?
I added a more readable error message in this case.
I’m sorry, this is one more serious bug that you spotted here… The indices were not sorted correctly in bst_simulation when using only a few scouts and a mixed head model.
It’s fixed now. But I’m not sure the results you got before were correct, maybe they were working by chance. My guess would be that they would be correct in some structures and wrong in some others, depending on the order they are saved in the cortex file.
I would recommend you re-run a few of them and check if the results are changing.