I would like to import data into a m file. Data has extension ".epi". I figured out how to import it (see code following) but would like to automatically get prompted and choose it from the explorer when running the m file. Thanks heaps, I'm a real beginner!
function importAEPdata(AEPfile)%IMPORTAEPDATA(AEPdata)
% Imports data from the specified file
% AEPfile: file to read
% Import the file
AEPdata = importdata(AEPfile);% Create new variables in the base workspace from those fields.
vars = fieldnames(AEPdata);for i = 1:length(vars) assignin('base', vars{i}, AEPdata.(vars{i}));end
Best Answer