%IMPORTFILE(FILETOREAD1) % Imports data from the specified file % FILETOREAD1: file to read % Auto-generated by MATLAB on 23-Sep-2007 19:41:31 % outputs an object, not the dataset function newData1 = importfile(fileToRead1) newData1 = importdata(fileToRead1); % Create new variables in the base workspace from those fields. vars = fieldnames(newData1); for i = 1:length(vars) assignin('base', vars{i}, newData1.(vars{i})); end