MATLAB Answers

does anyone know how we enter data manually into "uitable"?

5 views (last 30 days)
Shynta Nanda
Shynta Nanda on 29 Dec 2019
Answered: Image Analyst on 29 Dec 2019
pertanyaan.png

  0 Comments

Sign in to comment.

Answers (2)

Ajay Kumar
Ajay Kumar on 29 Dec 2019
One option could be writing callback to button(Enter data) wherein we use inputdlg to get the user inputs for all values and assigning it to uitable there itself.
doc inputdlg

  0 Comments

Sign in to comment.


Image Analyst
Image Analyst on 29 Dec 2019
What do you mean by manually?
  1. By the user directly typing into the cells of the table, or
  2. By programmatically sending some data to the table?
If (1), just run the app by clicking on the green run triangle and have the user click inside a cell and start typing.
if (2), just do this
handles.uitable1.Data = yourMatrix; % Or your cell array.

  0 Comments

Sign in to comment.

Sign in to answer this question.