I want to add a new pushbutton in an already created uitable by hardcoding it. For now i have created a UI table like this by adding a pushbutton to create it:
function table_Button_Callback(hObject, eventdata, handles)handles.Load_data=uitable('Parent',figure,'Units','normalized',... 'Position',[0.008 0.5 5 0.5],'ColumnWidth','auto', ... 'Data', tabledata,'ColumnName', columnname, ... 'ColumnFormat', columnformat,'ColumnEditable', columneditable, ... 'RowName',[] ,'BackgroundColor',[.7 .9 .8],'ForegroundColor',[0 0 0]);
Now i want to add another button inside this table to create more number of rows.How do i create that button inside the table. Thank you in advance.I am new to matlab GUide.Kindly help with this.
Best Answer
sachin - once you add your new button (to your GUI) you can use the following callback to add one new row to the table
Try the above and see what happens!