classdef basic_plot < matlab.apps.AppBase
properties (Access = public)
UIFigure matlab.ui.Figure
UITable matlab.ui.control.Table
UITable_2 matlab.ui.control.Table
properties (Access = private)
methods (Access = private)
app.UITable_2.Data = [0 0];
function UITableCellSelection(app, event)
app.UITable_2.Data =app.a;
app.UITable_2.Data =app.b;
app.selectedCell=indices(2);
function UITable_2CellEdit(app, event)
app.a={newData app.a{2}};
app.a={app.a{1} newData};
app.b={newData app.b{2}};
app.b={app.b{1} newData};
methods (Access = private)
function createComponents(app)
app.UIFigure = uifigure('Visible', 'off');
app.UIFigure.Position = [100 100 640 480];
app.UIFigure.Name = 'MATLAB App';
app.UITable = uitable(app.UIFigure);
app.UITable.ColumnName = {'A'; 'B'};
app.UITable.RowName = {};
app.UITable.CellSelectionCallback = createCallbackFcn(app, @UITableCellSelection, true);
app.UITable.Position = [197 313 174 82];
app.UITable_2 = uitable(app.UIFigure);
app.UITable_2.ColumnName = {'C'; 'D'};
app.UITable_2.RowName = {};
app.UITable_2.ColumnEditable = true;
app.UITable_2.CellEditCallback = createCallbackFcn(app, @UITable_2CellEdit, true);
app.UITable_2.Position = [197 203 174 77];
app.UIFigure.Visible = 'on';
methods (Access = public)
function app = basic_plot
registerApp(app, app.UIFigure)
runStartupFcn(app, @startupFcn)