Error running PAL_AMPM_Demo

Post Reply
ttronstad
Posts: 2
Joined: Thu Jul 07, 2022 7:59 am

Error running PAL_AMPM_Demo

Post by ttronstad »

I just downloaded the latest version of Palamedes (1.11.1) and tried to run the PAL_AMPM_Demo on MATLAB R2022a. It gives me the following error (both on Original Psi, Psi+ and Psi-marginal):

Code: Select all

Check for incorrect argument data type or missing argument in call to function 'reshape'.

Error in ndgrid (line 69)
        x = reshape(x,s);

Error in PAL_AMPM_CreateLUT (line 19)
[a, b, g, l, m, x] = ndgrid(priorAlphaValues, priorBetaValues, priorGammaValues, priorLambdaValues, priorModelIndeces, StimLevels);

Error in PAL_AMPM_Demo (line 170)
vizLUT = squeeze(PAL_AMPM_CreateLUT(alphas,betas,gammas,lambdas,stimRange,PF,false));
Does anyone know why this happens?
User avatar
Nick Prins
Site Admin
Posts: 28
Joined: Sun Feb 13, 2022 8:55 pm

Re: Error running PAL_AMPM_Demo

Post by Nick Prins »

This was a bug. Problem had to do with the visualisation of the posterior in the Demo routine itself. This issue is now fixed in Palamedes version 1.11.2 posted today (July 7, 2022)
Nick Prins, Administrator
ttronstad
Posts: 2
Joined: Thu Jul 07, 2022 7:59 am

Re: Error running PAL_AMPM_Demo

Post by ttronstad »

Thank you for the quick reply and fix.
Just remember to update the link in the download-page to the new version (it is still 1.11.1). I was able to download it by writing "...1_11_2.zip" in the url, but that was just because I expected it to be there.
User avatar
Nick Prins
Site Admin
Posts: 28
Joined: Sun Feb 13, 2022 8:55 pm

Re: Error running PAL_AMPM_Demo

Post by Nick Prins »

Things look fine at our end... I think all you need to do is clear the cache on your browser.
Nick Prins, Administrator
Post Reply