How can I define a variable within App Designer?

5 次查看(过去 30 天)
Hi, I'm trying to make a simple app in the app designer, however, I can't define variables for the App (see image). Does anyone know why this is the case? And how I could define variables within the app?

回答(2 个)

yago urroz castillo
yago urroz castillo 2019-11-20
How do you get to edit this field? I have it locked in my App Designer window.

Brendan Hall
Brendan Hall 2018-6-1
I worked it out, I needed to let the app designer know a and b are a thing in properties first, then define what they actually are in the startup function with app.a and app.b before carrying out any functions. (see image)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by