フィルターのクリア

why evalin doesnt wotk in App Designer matlab 2017b?

4 ビュー (過去 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 Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by