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

6 ビュー (過去 30 日間)
Shynta Nanda
Shynta Nanda 2019 年 12 月 29 日
回答済み: Image Analyst 2019 年 12 月 29 日
pertanyaan.png

採用された回答

Image Analyst
Image Analyst 2019 年 12 月 29 日
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.

その他の回答 (1 件)

Ajay Kumar
Ajay Kumar 2019 年 12 月 29 日
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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by