Using EditField string as variable (appdesigner)

10 ビュー (過去 30 日間)
Daniel Lukac
Daniel Lukac 2020 年 2 月 3 日
回答済み: Sahithi Kanumarlapudi 2020 年 2 月 7 日
Hello, i have in MLapp some editField1 and EditField2 and i need them to use as string variable. For example:
To editFiled1 i write x(2) and to editField2 (1-(x(1)^2))**x(2) - x(1)
then i need to use them asi parameters in function:
f.e:
function xder=func(t,x)
xder=[app.editField1.Value;app.editField2.Value];
end
is something like that even possible ? thanks for replies

回答 (1 件)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2020 年 2 月 7 日
You could use setappdata and getappdata to store and retrieve application-defined data. So you store the values of the Edit Fields using setappdata and use getappdata to retrieve it in the function. For more information on how to use these functions refer to the following links

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by