Can I download built-in Matlab functions somewhere?

Hi, I'm working on a GUI and would like to use the 'addlistener' routine, which is a built-in function in current Matlab releases. Since I'm still working on r2008a (where the routine is not available yet), my question is if this routine is available for download somewhere, so I can add it to my Matlab version?

 Respuesta aceptada

dpb
dpb el 6 de Jul. de 2015
Nope, only upgrading to a release which includes it (or, in some cases, there are File Exchange submissions which provide the functionality for earlier releases but they're not "builtins"). I'm guessing the addlistener routine requires hooks into Matlab not available for even a mex file.

4 comentarios

Important to be aware of Yair's own comment: "Note: relies on undocumented and unsupported Matlab functionality. Use at your own risk."
Alex Taylor
Alex Taylor el 6 de Jul. de 2015
Unless I'm missing something, the use case of the file exchange submission in question is directly supported in MATLAB by the documented interface: event.proplistener:
Steven Lord
Steven Lord el 6 de Jul. de 2015
It is now. It wasn't back when Yair originally submitted that file; then he WAS using undocumented and unsupported functionality.

Iniciar sesión para comentar.

Más respuestas (1)

Steven Lord
Steven Lord el 6 de Jul. de 2015

0 votos

ADDLISTENER is part of release R2008a. It was introduced along with the newest object-oriented programming system (as described in the Release Notes for MATLAB for that release.) It is a method of the handle class, so you will need to call it with a handle object as the first input argument "HSOURCE". If you're trying to use this to listen to properties of Handle Graphics objects, I'm not sure if that is possible, supported, and/or recommended in that release.

Categorías

Más información sobre Software Development en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 6 de Jul. de 2015

Comentada:

el 6 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by