Back to PLS Help

Error Following "Show PLS Result for ERP Data"
pdhami
Posted on 09/04/20 18:08:34
Number of posts: 36
pdhami posts:

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:

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 1370)
   erp_showplot_ui(h0);
 
Error in erp_plot_ui (line 40)
      fig = init(datamat_file, view_option, fig);
 
Error in erp_plot_ui>view_corr (line 2333)
   h01 = erp_plot_ui({datamat_file,5});
 
Error in erp_plot_ui>toggle_corr (line 1551)
      view_corr;
 
Error in erp_plot_ui (line 94)
      toggle_corr;
 
Error while evaluating Menu Callback.
 
Any advice as to how to solve this?
 
Best,
Paul

Replies:

Untitled Post
rmcintosh
Posted on 09/05/20 08:38:54
Number of posts: 394
rmcintosh replies:

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



Untitled Post
pdhami
Posted on 09/05/20 09:19:40
Number of posts: 36
pdhami replies:

quote:

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:

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.
 
Best,
Paul
 


erp_shoplot_ui update?
alenarto
Posted on 10/23/23 12:10:05
Number of posts: 41
alenarto replies:

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.

 



erp_shoplot_ui update?
alenarto
Posted on 10/23/23 12:56:54
Number of posts: 41
alenarto replies:

quote:

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.



Untitled Post

I'm Online
nlobaugh
Posted on 11/05/23 14:19:21
Number of posts: 229
nlobaugh replies:

quote:

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



line 731 fix
alenarto
Posted on 11/15/23 12:45:55
Number of posts: 41
alenarto replies:

quote:

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

 




Login to reply to this topic.

  • Keep in touch

Enter your email above to receive electronic messages from Baycrest, including invitations to programs and events, newsletters, updates and other communications.
You can unsubscribe at any time.
Please refer to our Privacy Policy or contact us for more details.

  • Follow us on social
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube

Contact Us:

3560 Bathurst Street
Toronto, Ontario
Canada M6A 2E1
Phone: (416) 785-2500

Baycrest is an academic health sciences centre fully affiliated with the University of Toronto