App Designer dispaly values in Text area and Guage
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi
I created a function to get some results (e.g. A=3, B=5, ...) from my equations (A=m.a) and I can disaply my results in a table. How can I disaply the values as a number in Text area and also in Gauge? My results are saved as 'A' and 'B'.
I tried these functions but they do not work and I think I need to convert my values to something for reading in Text Area and Gauage. Any help?
A=app.AGauge;
OR
app.AGauge=A;
댓글 수: 0
채택된 답변
Voss
2022년 12월 16일
% textarea
app.BText.Value = num2str(B); % assuming BText is the name of your textarea
% gauge
app.AGauge.Value = A;
References:
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!