How to fix this Error? __ No constructor ‘handle.listener’ with matching signature found.
I have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitleI have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitle I have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitle constructor, handle.listener, signature, matching signature MATLAB Answers — New Questions