Effacer les filtres
Effacer les filtres

How can I save the data from editbox to uitable

3 vues (au cours des 30 derniers jours)
CHETHAN S
CHETHAN S le 19 Jan 2016
I want to save the data entered in editbox to uitable , and store the successive data in uitable (i.e.,every time when I enter the data in editbox must be saved in same uitable one by one).

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Jan 2016
this_string = get(hObject, 'String');
current_data = get(handles.uitable1, 'data');
if ~iscell(current_data)
current_data = num2cell(current_data);
end
current_data{end+1,1} = this_string;
set(handles.uitable1, 'Data', current_data);
  1 commentaire
CHETHAN S
CHETHAN S le 19 Jan 2016
Modifié(e) : Walter Roberson le 19 Jan 2016
Thank you very much. It helped a lot

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by