%Import data
if nargin==0 filen=load(filename,'mp1') [filen,path]=uigetfile('*.mat;*.gif',... 'Pick your file'); else [path,filen,ext]=fileparts(files); path=[path '\']; fs=filesep; if ~isempty(path), path=[path fs]; end filen={[filen ext]}; end
how to load file automatic?
mean: to load file (just call extension not file name) in specific directory.
Best Answer