How to plot user entered data set in app design

Hi, I am developing an app where the user enters time, speed, and g-force (slope) values. Which gets stored and displaced in a table format on the app design. Once the user has finished adding the values, I have a generate plot button. How do I take the data from that table to display it in a graph. I did try to use " readtable " command but since the table is not in a sperate file it does not work.

답변 (1개)

Cris LaPierre
Cris LaPierre 2022년 7월 24일
The values of a uitable are accessed via the Data property. See here.
data = app.UITable.Data
plot(app.UIAxes,data(:,1),data(:,2),data(:,1),data(:,3))

카테고리

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

제품

릴리스

R2020a

질문:

2022년 7월 23일

답변:

2022년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by