title: All tables in the bracketed expression must have the same variable names
body: <p>I have two editable numeric fields and a table in app designer; the user can enter the values in these editable fields and then push a button. Then, the values are added to a table. Also, I provide an option to attach an excel folder that should have two columns to reflect on the table.
  Both of these work perfectly fine individually, but, if I added the values manually then attached an excel folder or vice versa, I get the following error: All tables in the bracketed expression must have the same variable names.
  The function that handles the editable fields:</p>
  
  <pre><code>  app.t = app.UITable.Data;
              x = app.xvalueEditField.Value;
              y = app.yvalueEditField.Value;
              nr = table(x, y);
              app.UITable.Data = [app.t; nr];  %% error happens here if I attach excel then add manually
              app.t = app.UITable.Data; 
  </code></pre>
  
  <p>The Function of the excel folder: </p>
  
  <pre><code>text = readtable([pathname filename], "Sheet",1, 'ReadVariableNames',false);
         fl = cellfun(@isnumeric,table2cell(text(1,:))); 
  if (numel(fl(fl == false)) &gt; 0) 
      flag = false;
  else
      flag = true;
  end
  if (flag)
              A = [app.t; text];  %% error happens here if I add manually then attach
              app.UITable.Data = A;
              app.t = text; 
  end
  </code></pre>
  
  <p>Note: these are only the parts of the function, where I attempt to combine values </p>
  
  <p>Can someone please help me?</p>
  
  <p>Thank you </p>