I have a list of files that have data ...
foo1.txt
foo2.txt
...
fooN.txt
I extract the data in these files
foo1
foo2
...
fooN
I now want to pass these variables to a function
for i = 1:N
% This is what I want: asdf = fooi
function(asdf)
end
I tried sprintf, and also
asdf = ['foo' num2str(i)]
But these make the variable asdf a char, instead of a double like fooi.
Thanks in advance.
-gsandhu