Dear PLS community,
I have run some preliminary ERP data with PLS, and following the user guide, got to the point of running PLS. Using the resulting file, I click "Show PLS Result for ERP Data" and as it attempts to load the figure, I get the following error:
I think is the graphics call, which is problematic with newer versions of Matlab. Try this version of PLSGUI and let me know if it works:
https://www.dropbox.com/s/95jt0q1gmj1sf1b/plsgui.zip?dl=0
I think is the graphics call, which is problematic with newer versions of Matlab. Try this version of PLSGUI and let me know if it works:
https://www.dropbox.com/s/95jt0q1gmj1sf1b/plsgui.zip?dl=0
Hi Dr. McIntosh,
thank you for the link. Unfortunately I am still recieving an error:
Hi Randy - Any update on resolving this plotting error for showing ERP results? We're seeing it in Matlab2020a on a cluster, and in MatlabR2022b on Ventura MacOS, so presumably it persists.
It looks like it's been discussed a few times in different contexts. Wondering if there's a suggested solution to viewing the results.
Thanks!
Agatha
**********************
RunPLS is done ...
Cannot convert double value 99999 to a handle
Error in erp_showplot_ui (line 731)
bs_wave_hdl(i,j) = 99999;
Error in erp_plot_ui>init (line 1376)
erp_showplot_ui(h0);
Error in erp_plot_ui (line 40)
fig = init(datamat_file, view_option, fig);
Error in erp_result_ui (line 81)
fig = erp_plot_ui({PLSResultFile, 3});
Error while evaluating DestroyedObject Callback.
Hi Randy - Any update on resolving this plotting error for showing ERP results? We're seeing it in Matlab2020a on a cluster, and in MatlabR2022b on Ventura MacOS, so presumably it persists.
It looks like it's been discussed a few times in different contexts. Wondering if there's a suggested solution to viewing the results.
Thanks!
Agatha
**********************
RunPLS is done ...
Cannot convert double value 99999 to a handle
Error in erp_showplot_ui (line 731)
bs_wave_hdl(i,j) = 99999;
Error in erp_plot_ui>init (line 1376)
erp_showplot_ui(h0);
Error in erp_plot_ui (line 40)
fig = init(datamat_file, view_option, fig);
Error in erp_result_ui (line 81)
fig = erp_plot_ui({PLSResultFile, 3});
Error while evaluating DestroyedObject Callback.
One thing to add. I have some old results, with which I happened to have saved the plsgui/cmd code. I just loaded up the results for ERPresults and they worked fine. This version of pls states that it's '6.1311050'. It was downloaded years ago (around 2019).
I then tried to load up the same data using a version of PLS that I recently downloaded. This version ALSO states that the plsgui_vernum is '6.1311050', but this version fails on the load and produces the above said error.
Any thoughts on how to procede?
al.
One thing to add. I have some old results, with which I happened to have saved the plsgui/cmd code. I just loaded up the results for ERPresults and they worked fine. This version of pls states that it's '6.1311050'. It was downloaded years ago (around 2019).
I then tried to load up the same data using a version of PLS that I recently downloaded. This version ALSO states that the plsgui_vernum is '6.1311050', but this version fails on the load and produces the above said error.
Any thoughts on how to procede?
al.
Hi Agatha -
Easiest to answer: it seems the "whatsnew.txt" was not updated to reflect the changes that are shown on the plsgui webpage, but none of those changes should have altered the ERP plotting.
Harder to answer: Since one result file works, and the other doesn't, it sounds like something the gui needs is not in the 2nd file - can you compare the two and let us know if there are any differences in variables, structure of the arrays? If you can't find anything, let us know (I'm using an ancient version of Matlab these days, so can't help much with troubleshooting)
Nancy
Hi Agatha -
Easiest to answer: it seems the "whatsnew.txt" was not updated to reflect the changes that are shown on the plsgui webpage, but none of those changes should have altered the ERP plotting.
Harder to answer: Since one result file works, and the other doesn't, it sounds like something the gui needs is not in the 2nd file - can you compare the two and let us know if there are any differences in variables, structure of the arrays? If you can't find anything, let us know (I'm using an ancient version of Matlab these days, so can't help much with troubleshooting)
Nancy
Hi Nancy et al. Great suggestion.
The difference between the old/new files is in line 731 as shown below. Namely, line 731 of erp_showplot_ui.m in the faulty file assigns 99999 to a bs_wave_hdl variable, which is variable that contains the handles to line plots for the ERP image. This assignment is invalid as the assigned input must be of type "handle".
The new file has a fix introduced by "LP", which creates a line handle and assigns this as input (bs_wave_hdl(i,j) = line(1,1,'LineStyle','none')). The suggested fix, introduced into the new code corrects the thrown error.
So perhaps this fix can work for those still experiencing it.
Agatha
iff plsgui/erp_showplot_ui.m Pls_2019/plsgui/erp_showplot_ui.m
731c731
< bs_wave_hdl(i,j) = 99999;
---
> bs_wave_hdl(i,j) = line(1,1,'LineStyle','none'); % LP 18.03.2019
Baycrest is an academic health sciences centre fully affiliated with the University of Toronto
Privacy Statement - Disclaimer - © 1989-2025 BAYCREST HEALTH SCIENCE. ALL RIGHTS RESERVED