Print

Print


Thank you for your response.

Do you mean literally 'P'? Because, if so, then unfortunately that hasn't
worked:

>> PPPI(P)
Undefined function or variable 'P'.


Georgia O’Callaghan,
Postdoctoral Research Fellow,
Emotion & Development Branch,
National Institute of Mental Health,
National Institutes of Health,
Bethesda, MD, USA

On 20 March 2017 at 13:57, MCLAREN, Donald <[log in to unmask]> wrote:

> PPPI is a command line toolbox. You run it by calling the command PPPI and
> feeding it the parameter structure P
>
> PPPI(P)
>
> Best Regards,
> Donald McLaren, PhD
>
>
> On Mon, Mar 20, 2017 at 1:55 PM, Georgia O'Callaghan <[log in to unmask]>
> wrote:
>
>> Hi Donald,
>>
>> I am still having difficulty opening the toolbox, I have tried tried the
>> above edit and get the following error:
>>
>> *    ~ - SPM12: PPPI toolbox  -------------------------------------------*
>>
>> *        Toolbox directory prepended to MATLAB path:*
>> *        C:\Users\ocallaghan\spm12\toolbox\PPPI*
>>
>> *        -----------------------------------------  13:49:06 - 20/03/2017*
>>
>> *Error using strncmp*
>> *Not enough input arguments.*
>>
>> *Error in PPPI (line 279)*
>>
>> *Error in spm (line 1013)*
>> *    evalin('base',xTB(i).prog);*
>>
>> *Error while evaluating UIControl Callback*
>>
>>
>>
>> I also tried your suggestion on the NITRC forum: if
>> ~strcmp(spm('Ver'),'SPM8') && ~strncmpi(spm('Ver'),'SPM12',5) (
>> https://www.nitrc.org/forum/forum.php?thread_id=6099&forum_id=1970), but
>> that just results in the entire contents of the PPPI.m script being
>> reproduced in the matlab controller (see screenshot attached).
>>
>> If you have any insights I would really appreciate your help,
>>
>> Thank you,
>>
>> Georgia
>>
>>
>> Georgia O’Callaghan,
>> Postdoctoral Research Fellow,
>> National Institute of Mental Health,
>> National Institutes of Health,
>> Bethesda, MD, USA
>>
>> On 4 August 2016 at 15:12, MCLAREN, Donald <[log in to unmask]>
>> wrote:
>>
>>> Karina,
>>>
>>> It's a error check that was inserted before SPM12 was released. Changing
>>> it to SPM12 removes the error and it should work in SPM12.
>>>
>>> Best Regards,
>>> Donald McLaren, PhD
>>>
>>>
>>> On Thu, Aug 4, 2016 at 1:56 PM, Karina Quevedo <[log in to unmask]> wrote:
>>>
>>>> Hi Donald,
>>>> I have used PPI in SPM8 and it works fine, you probably want to run
>>>> your analyses in SPM8 unless somebody knows of how to use it in 12 which by
>>>> your error message sounds like is not possible.
>>>> Warmly
>>>> Karina
>>>>
>>>> On Thu, Aug 4, 2016 at 10:51 AM, MCLAREN, Donald <
>>>> [log in to unmask]> wrote:
>>>>
>>>>> Change " if ~strcmp(spm('Ver'),'SPM8')" to "if
>>>>> ~strcmp(spm('Ver'),'SPM12')"
>>>>>
>>>>> Best Regards,
>>>>> Donald McLaren, PhD
>>>>>
>>>>>
>>>>> On Thu, Aug 4, 2016 at 11:39 AM, Maria Hakonen <
>>>>> [log in to unmask]> wrote:
>>>>>
>>>>>> Dear SPM experts,
>>>>>>
>>>>>> I have downloaded gPPI toolbox. In the file IPPP.m (lines 278-289) it
>>>>>> is written as follows:
>>>>>>
>>>>>> if ~strcmp(spm('Ver'),'SPM8')
>>>>>>     disp('PROGRAM ABORTED:')
>>>>>>     disp('  You must use SPM8 to process your data; however, you can
>>>>>> use SPM.mat files')
>>>>>>     disp('  generated with SPM2 or SPM5. In these cases, simply
>>>>>> specify the option SPMver')
>>>>>>     disp('  in single qoutes followed by a comma and the version
>>>>>> number.')
>>>>>>     disp(' ')
>>>>>>     disp('Make sure to add SPM8 to your MATLAB path before
>>>>>> re-running.')
>>>>>>     return
>>>>>> end
>>>>>>
>>>>>> I have SPM12 on my laptop. Should I install SPM8 if I want to use
>>>>>> gPPI toolbox?
>>>>>>
>>>>>> Thank you already in advance!
>>>>>>
>>>>>> Best Regards,
>>>>>> Maria
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Karina Quevedo, Ph.D.
>>>> Assistant Professor. Division of Child and Adolescent Psychiatry
>>>> Room F260
>>>> University of Minnesota. Department of Psychiatry
>>>> 2450 Riverside Avenue, Mpls, MN 55454
>>>> 612-273-9761 Fax: 612-273-9779
>>>> [log in to unmask]
>>>>
>>>>
>>>
>>
>