function newData1=ImportNewSuperDARNdata(fileToRead1) %IMPORTFILE(FILETOREAD1) % Imports data from the specified file % FILETOREAD1: file to read % Auto-generated by MATLAB on 29-Sep-2016 10:57:50 % Import the file newData1 = importdata(fileToRead1); % Create new variables in the base workspace from those fields. try vars = fieldnames(newData1); for i = 1:length(vars) assignin('base', vars{i}, newData1.(vars{i})); end catch ME newData1=NaN; end