data = load('variables');
dataj = convertCharsToStrings(dataj);
c(2:sz(j)+1,j) = num2cell(dataj);
T = cell2table(c(2:end,:),'VariableNames',c(1,:));
The code above shows how to put my Workspace variables (all strings) into Excel. How can I go backwards? What if I'm given the Excel sheet with the variables, how do I load them into the Workspace. My first attempt was this
varsFile = "workspace.csv";
dataTable = table(aa, bb, cc);
But I dont like this method because I have to call each variable and that is tedious if ihave many variables. Thanks.