フィルターのクリア

How to use arrayfun(func,A) in App Designer?

1 回表示 (過去 30 日間)
Wess Gates
Wess Gates 2018 年 11 月 19 日
コメント済み: Wess Gates 2018 年 11 月 24 日
Hello,
Is it possible to use arrayfun(func,A) in App Designer? If so would someone please provide an example?
Background:
I have an App I am building in App Designer. In App designer function calls have the syntax myfunction(app, arg1, arg2...). I cannot seem to figure how how to get the syntax arrayfun(@myfucntion(app, arg1, arg2, ...), A1, A2, AN) to call correctly which seems to be hindered by the fact that the arrayfun() does not have a way to pass the "app" argument part of the call from what I gather. It could be that I just do not understand the proper syntax.
Thanks,
Wess

採用された回答

Walter Roberson
Walter Roberson 2018 年 11 月 19 日
arrayfun(@(arg1, arg2, argn) myfucntion(app, arg1, arg2, argn), A1, A2, AN)
  1 件のコメント
Wess Gates
Wess Gates 2018 年 11 月 24 日
Thank you. It worked great.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by