MATLAB: How to write a code in M file for the variable name that constantly change with the file name

fftloopm-fileMATLABvariable

Best Answer

Don't do it that way. Instead, when loading a text file (does not apply to .mat!)
YourVariable = load(filename);
Y = fft(YourVariable) / 4096;
Use whatever variable name is meaningful for your situation.