Notify a listener from a batch running job

2 ビュー (過去 30 日間)
khaled walid
khaled walid 2021 年 2 月 20 日
回答済み: Alvaro 2023 年 1 月 18 日
Hello guys,
I am working on a project in which I need to notify a listener from within a running job that was called using 'batch'. I tried it using the oridnary way but it seems it doesn't work.
My aim is to read a value that keeps changing in the running job. I need to check this value while the job is still running and not after or before that.
What I mean by the ordinary way, is that I created a handle class defining the event, the listener and used the notify function where I need to execute the callback. The code is working outside of the batch job but inside of it, nothing!
Thanks.

回答 (1 件)

Alvaro
Alvaro 2023 年 1 月 18 日

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by