I have the following code:
function c=somename(fname) % fname contains a path to a folder
folder=dir(fname); f=size(folder); f=f(1); for n=1:f name=folder(n).name; fullname{n}=fullfile(fname,cellstr(name)); filename=fullname{n}; a{n}=importdata(fullname{n}); % loads data
a{n}=a{n}.textdata; .... end
when I am executing this function I get the following output:
Error using importdata (line 136)Unable to open file.
Please help me to solve this problem.
Thanks in advance.
Ritankar Das
Best Answer