Hello Everyone,
I have a "n" number of functions with different names in a specific directory "C:\my\path\". I would like to figure out the most efficient way to evaluate all the functions that I have . I know I can use a function handler, but still I am not sure how can I read all the files in the given directory, and the pass each of them as an argument for evaluation purpose.
I've considereing something as below code, but not sure how to read all the functions that i have in a directory.
A=randi(65535,1, 5e6);B=randi(65535,1, 5e6); numberFunctions = x; %this value is determined by the total number of files in a given path
for k=numberFunctions:%number of Functions
fx = @( ?? ) %Here, how can I read all the files?
C = fx (A, B) %Here, x will go from 1 to n, so I can evaluate all my functions.
end
Thanks,
Francisco
Best Answer