enable/disable property listener

조회 수: 4 (최근 30일)
Robert Moss
Robert Moss 2016년 6월 23일
답변: Robert Moss 2016년 6월 29일
In R2013a I used addlistener to listen to various object properties. On occasion I had reason to enable and disable these listeners using get/set. Get and set are apparently no longer supported in R2016a (and probably somewhere earlier) for event.proplistener. Is there a handy way to enable and disable these listeners now?

채택된 답변

Robert Moss
Robert Moss 2016년 6월 29일
The Enabled property for a property listener was changed (I think in R2014b) to a logical. Previously it was a string "on" or "off". Also in this same release (I think) the property listener no longer supports set/get, so you MUST use dot notation to change the Enabled value.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Events에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by