Filter löschen
Filter löschen

How to insert a row into a ui table??

3 Ansichten (letzte 30 Tage)
Animesh
Animesh am 19 Dez. 2013
Beantwortet: ES am 19 Dez. 2013
I have made a GUI which captures the image from a webcam upon pressing a push button.I want to save the image alomg with the name and other details of the person. I have 2 more edit text boxes for entering the details of the person.I have another save button which upon pressing must save the image and other details in a table.So everytime a image is captured a new row must be inserted in the table containing the image and details.. How am i supposed to do that? Thanks in advance...

Akzeptierte Antwort

ES
ES am 19 Dez. 2013
It sounds easy.. upon press of the save button, read the value in the uitable as follows..
ExistingData=get(handles.uitable,'data');
NewData={'FileName', 'SavedBy', 'etc etc'};
TotalData=[ExistingData;NewData];
set the TotalData by using set,
set(handles.uitable,'data',TotalData);

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by