Page 1 of 1

Error running PAL_AMPM_Demo

Posted: Thu Jul 07, 2022 8:14 am
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?

Re: Error running PAL_AMPM_Demo

Posted: Thu Jul 07, 2022 9:16 am
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)

Re: Error running PAL_AMPM_Demo

Posted: Mon Jul 11, 2022 1:37 am
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.

Re: Error running PAL_AMPM_Demo

Posted: Mon Jul 11, 2022 8:21 am
by Nick Prins
Things look fine at our end... I think all you need to do is clear the cache on your browser.