Is addlistener useless in 2014b? See example below. In older versions the "ev" input to the listnn function would have a field containing the new value that the property is being set to (ev.NewValue)... but in 2014b I don't see the new property value anywhere in the listnn function's inputs.... which seems to defeat the purpose of having listeners...
Is there some new method to get the new property value?
function listenertest
figure
a=axes('xtick',[0 .5 1])
addlistener(a,'XTick','PreSet',@listnn)
set(a,'xtick',[.1 .2 .3 .4])
function listnn(src,ev)
keyboard
1 Comment
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/161503-addlistener-in-r2014b-can-t-access-new-property-value#comment_278886
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/161503-addlistener-in-r2014b-can-t-access-new-property-value#comment_278886
Sign in to comment.