How do you create callback inside the callback?

2 次查看(过去 30 天)
Hi, I'm working on a project with Matlab AppDesigner.
This is practically what i want to do.
  1. Write Azimuth, Elevation values.
  2. Press 'Run' button to do stuff(not very important).
  3. Then, I create another button 'up' or 'down', so when i press the button, it increases or decreases the written azimuth and elevation value by 5.
  4. Press 'Run' button to do stuff with changed values.
From what i know, so far, to do this, I need to create callback for Run button and also create callback for Up button.
So...how can i make this happen?

回答(1 个)

Geoff Hayes
Geoff Hayes 2022-6-23
@SooYoung Oh - highlight the button (from within App Designer) and right-click to select Callback -> Add ButtonPushed callback (or something similar). See callbacks in App Designer for details.

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by