How to add array of data in new row UITable using same callback function ?
Show older comments
I've added array of data to UITable. i wasn't able to figure out how to added similar array which has different values in a new row without removing the previous added array of data by using same callback function. Any support is appreciated.
% Button pushed function: CreateandLoadSFButton
function CreateandLoadSFButtonPushed(app, event)
%Add to UITable
app.UITable.RowName= 'numbered';
%rwname={Name,Heat Capacity',Cooling Correction,Heating Time,Cooling Time,Voltage,Current,Initial RT,Container Heat Capacity,Liquid Weight};
data={Name,HCap,ydT_2,xH,xC,V,I,Q0,ConHC,W,};
nr=1;
for i=1:10
nr=nr+1;
end
app.UITable.Data(nr,:)=data;
end
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!