How to create a pushbutton programmatically in an editable uitable to refresh the newly input data. I have this sample code,
f = figure('Position',[700 200 240 100],'Name','Derated');t = uitable(f);t.ColumnName = {'Rating(MW)','FOR/State Probability'};t.RowName = [];t.Data = [0 0; 0 0; 0 0];t.Position(3) = t.Extent(3);t.Position(4) = t.Extent(4);t.ColumnEditable = [true true];disp(t.Data)
Best Answer