Continous updating graph using App Designerr
조회 수: 4 (최근 30일)
이전 댓글 표시
I need to be able to automatically update a graph when values change in an App Designer Model. I have knobs, sliders etc and wrote code to do calculations. I need to be able to graph these calculations automatically as I change the knob/slider values. Does anyone have any examples of what I am trying to do or know how to help?
Thanks in advance
댓글 수: 0
답변 (1개)
ag
2025년 2월 6일
Hi Gavin,
To dynamically update a graph when values change in the App Designer, you can employ the "callback" function. A callback is a command that executes in response to a predefined user action, such as interacting with a graphical object or closing a figure window. In your scenario, you can assign a "callback" function to the "slider."
The following MathWorks documentation explains in detail how to achieve the same: https://www.mathworks.com/help/matlab/creating_guis/write-callbacks-for-gui-in-app-designer.html#:~:text=Designer%20Components.-,Create%20and%20Assign%20Callbacks%20Programmatically,-You%20can%20also
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File 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!