why evalin doesnt wotk in App Designer matlab 2017b?

조회 수: 6 (최근 30일)
Kaustubh hike
Kaustubh hike 2021년 11월 1일
댓글: Rik 2021년 11월 2일
I am creating app in appdesginer .
When I ran the same code in same matlab version , it works but when I tried to implement it in app designer it gives error as
Undefined function or variable 'XXXX'.
What could be the reason or what could be the alternative for the same?
  댓글 수: 9
Kaustubh hike
Kaustubh hike 2021년 11월 2일
@Rik WHat is MyFun, what consist of it ?
Rik
Rik 2021년 11월 2일
That was just an example function. Since you haven't explained anything about how you call your function I can't actually suggest the real changes you should make. You shouldn't be needing evalin. You should use input arguments to your functions.
If you don't know how to do that I suggest you do a basic Matlab tutorial.

댓글을 달려면 로그인하십시오.

채택된 답변

Bruno Luong
Bruno Luong 2021년 11월 2일
편집: Bruno Luong 2021년 11월 2일
You probably forget to populate APP_isc_n_gbxInp in the base workspace.
I create a small app (attached) and evalin works just fine (R2021b)
>> clear
>> testevalin
Cannot retrieve a from base workspace % message when I click on "Get a button", not working since a is not created
>> a=1
a =
1
a = 1.000000 % message when I click on "Get a button", it woeks
>>

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by