How to pass variable to function handle using registerevent?
2 ビュー (過去 30 日間)
表示 古いコメント
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 件のコメント
回答 (0 件)
参考
カテゴリ
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!