필터 지우기
필터 지우기

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

조회 수: 2 (최근 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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop 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