How do I append row(s) of data to an existing array in a .mat file. The following works except the 2nd to last line:
tableIt = [1 2 3;4 5 6;7 8 9];tableMore = [10 11 12];filename = 'aTable.mat';data2store = 'tableIt';more2store = 'tableMore';save(filename,data2store');whos('-file',filename);m = matfile(filename,'Writable',true);m.tableIt(end+1,:) = more2store;whos('-file',filename);
Best Answer