How to keep variables in a level 2 s-function?

I am writing an S-Function that outputs data from an audio device. I need to store the handle to the device but don't know where to keep it. As this is my first level-2 s-function, I'm pretty clueless.
Thanks for any advice

1 件のコメント

babazaroni
babazaroni 2016 年 5 月 25 日
One solution is to use the 'persistent' attribute an a variable in a function.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSignal Processing Toolbox についてさらに検索

質問済み:

2016 年 5 月 24 日

コメント済み:

2016 年 5 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by