Problem with running example script: clpos_extent
Opened this issue · 0 comments
Halo,
thanks a lot for sharing your nice toolbox.
I am trying to run the example script, and all is well until i try running the scripts:
mediation_brain_results
mediation_brain_results_all_script
For example, when i run the latter, all starts well, and then it throws an error which looks as follows (there are more lines above, but i skipped them to highlight the part where it throws an error):
%%%
...
Saving clusters with extracted data in:
intersect_a_and_b_clusters_005_k3
MEDIATION: A, B, A*B CONJUNCTION
MEDIATION: A, B, A*B CONJUNCTION
Error:File: mediation_brain_results.m Line: 295 Column: 35
Identifier 'clpos_extent' is not a function or a shared variable. To share 'clpos_extent' with nested
function, initialize it in the current scope. For more information, see Sharing Variables Between Parent and
Nested Functions.
Error in mediation_brain_results_all_script (line 238)
[clpos, clneg, clpos_data, clneg_data, clpp2, clnn2] = mediation_brain_results ...
%%%
I tried running the prior mediation analysis using the fast version, as well as the bootstrap version, but they all end up giving the same error. However, using the 'publish_mediation_report' works well.
Im running Matlab 2020a, with the newest versions of the mediation toolbox and the canlab core.
Thanks for any help, and have a good day weekend ahead! :)
Kris