help > Running gPPI on Matlab R2018B: problem and fix
Showing 1-3 of 3 posts
Aug 30, 2019 10:08 AM | Matan Mazor
Running gPPI on Matlab R2018B: problem and fix
Hello,
I tried to run gPPI and couldn't get it to work. The reason was that the file 'path\to\spm12\toolbox\PPPIv13.1\PPPIv13\contains.m' overrides an existing Matlab function. To fix the problem, I renamed the file 'path\to\spm12\toolbox\PPPIv13.1\PPPIv13\contains.m' to contains2, changed the function name inside the file to 'contains2', and replaced all calls to 'contains' in the package code to calls to 'contains2' (functions that call 'contains' are: 'spm_estimate_ppi', 'createVec', and 'timeseries_extract').
Hope this will be useful,
-Matan
I tried to run gPPI and couldn't get it to work. The reason was that the file 'path\to\spm12\toolbox\PPPIv13.1\PPPIv13\contains.m' overrides an existing Matlab function. To fix the problem, I renamed the file 'path\to\spm12\toolbox\PPPIv13.1\PPPIv13\contains.m' to contains2, changed the function name inside the file to 'contains2', and replaced all calls to 'contains' in the package code to calls to 'contains2' (functions that call 'contains' are: 'spm_estimate_ppi', 'createVec', and 'timeseries_extract').
Hope this will be useful,
-Matan
Jul 24, 2020 06:07 AM | Lydia Kogler - Medical Faculty University of Tuebingen
RE: Running gPPI on Matlab R2018B: problem and fix
Wanted to say thank you for that hint! Icould not get the toolbox
run (I tried SPM8 and SPM12; Matlab2019 and Matlab2018).
This was the error:
Operands to the || and && operators must be convertible to logical scalar values.
Error in dlmwrite (line 133)
useVectorized = realdata && precnIsNumeric && ~contains('%\',dlm) ...
Error in PPPI (line 861)
dlmwrite([P.subject '_' region1 '_session' num2str(z) '_' P.method '_PPI_regressors.txt'],[OUT.PPI.C OUT.P.C
OUT.Y.C OUT.C.C],' ');
Error in runOnSampleData (line 48)
PPPI(P, [workdir filesep 'sampleData' filesep 'stats' filesep 'gPPI_sampleDataTest.mat']);
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.visibleInToolstrip
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.visibleInToolstrip
And changing the function to contains2 helped! Thanks!
This was the error:
Operands to the || and && operators must be convertible to logical scalar values.
Error in dlmwrite (line 133)
useVectorized = realdata && precnIsNumeric && ~contains('%\',dlm) ...
Error in PPPI (line 861)
dlmwrite([P.subject '_' region1 '_session' num2str(z) '_' P.method '_PPI_regressors.txt'],[OUT.PPI.C OUT.P.C
OUT.Y.C OUT.C.C],' ');
Error in runOnSampleData (line 48)
PPPI(P, [workdir filesep 'sampleData' filesep 'stats' filesep 'gPPI_sampleDataTest.mat']);
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.visibleInToolstrip
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.visibleInToolstrip
And changing the function to contains2 helped! Thanks!
Oct 30, 2020 10:10 AM | maditas
RE: Running gPPI on Matlab R2018B: problem and fix
Hi,
I had exactly the same problem / received the same error message using Matlab R2017B and was very happy to find this thread and fix. Unfortunately, I could not solve the problem. I renamed the function and its calls to "contains2" as Matan suggested. However, I couldn't find the call of "contains" in the function 'path\to\spm12\toolbox\PPPI\timeseries_extract.m'. Any help / suggestions would be appreciated.
Thanks a lot!
Maditas
I had exactly the same problem / received the same error message using Matlab R2017B and was very happy to find this thread and fix. Unfortunately, I could not solve the problem. I renamed the function and its calls to "contains2" as Matan suggested. However, I couldn't find the call of "contains" in the function 'path\to\spm12\toolbox\PPPI\timeseries_extract.m'. Any help / suggestions would be appreciated.
Thanks a lot!
Maditas
