How can I define a variable within App Designer?

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일

1 개 추천

How do you get to edit this field? I have it locked in my App Designer window.
Brendan Hall
Brendan Hall 2018년 6월 1일

0 개 추천

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)

카테고리

도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

질문:

2018년 6월 1일

답변:

2019년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by