フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Having trouble inserting data into my GUI table.

1 回表示 (過去 30 日間)
Surafel Taddesse
Surafel Taddesse 2017 年 12 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
My table originally is a 5x5 zeros. I want to input the random digits into the table but I get this error. "Requires character array or cell array of character vectors as inputs."
values = randi(10,5) valuesAsCell = num2cell(values) set(handles.Input_matrix,'data',valuesAsCell{:});

回答 (1 件)

KL
KL 2017 年 12 月 7 日
編集済み: KL 2017 年 12 月 7 日
It's simply,
f = figure;
t = uitable(f);
t.Data = randi(10,5);
and if you're using appdesigner,
app.UITable.Data = randi(10,5);

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by