Get output of a callback-function (pointer-like)

Hello,
I'm using this function for filtering a list with a callback-function http://www.mathworks.de/matlabcentral/fileexchange/32971-dynamic-search-box. Have a look at the example.mat for what my code does... When filtering a list, I put the example.mat into a function and call
filtered = filterList(list);
filterList sets now the KeyPressFcn as shown in the example of the link above. When this function is evaluated, it calls a function handle to work on the output. How can I now pass the function handles output tomy filterList-function and pass the output to the filtered-variable?
Sounds quite confusing, but I'd appreciate any help very much :-)

回答 (1 件)

Vincent
Vincent 2012 年 3 月 16 日

0 投票

I found a solution which is rather very unbeautiful: My function handle uses a persistent-variable and my filter-function waits in a while-loop until this one changes...

カテゴリ

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

質問済み:

2012 年 3 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by