How to write the code for Appdesigner for when a user inputs the data and then store in a variable, inorder to use that value for a later caluclation?

조회 수: 3 (최근 30일)
How to write the callback function for user inputted data and store that value for a later calculation?
Is this how you do it?
T = app.DurationEditField.Value;

답변 (1개)

Rik
Rik 2022년 4월 11일
Short answer: yes. If you want to use it in another function you might want to store it in a property (app.SomePropertyYouNeedToCreate).
For general advice and examples for how to create a GUI, have look at this thread.

카테고리

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