Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Having trouble inserting data into my GUI table.

1 visualización (últimos 30 días)
Surafel Taddesse
Surafel Taddesse el 7 de Dic. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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{:});

Respuestas (1)

KL
KL el 7 de Dic. de 2017
Editada: KL el 7 de Dic. de 2017
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);

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by