How to pass variable to function handle using registerevent?

2 ビュー (過去 30 日間)
Dc215905 2022 年 5 月 6 日
I'm streaming data from another peice of software and I'm having matlab read events from the software and if and event occurs I call my function. The funciton handler requires me to specifcy which channel the event will occur, but I'm not clear on the syntact I should use to specificy.
Below is what I have, where I need some variables to pass into 'OnEventDataArrived"
global gLCDoc
gLCDoc.registerevent({'OnEventDataArrived' @app.MyFunction})
Does anyone have any ideas?

回答 (0 件)


Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by