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. Related SolutionsMATLAB: How to save a string as a filename Maybe something like thisfor number=1:10 file_name = sprintf('case study_#%d.txt',number); save(file_name,...);end MATLAB: Write out separate files for each iteration Are you getting any error? If yes, can you provide your .wav files? Related QuestionHow to change in sequences of files each output of two for loops one inside the otherConstruct a filename and then open itSaving an array of complex numbers within a loopImport Jpk AFM images MatlabMatlab is returning error “Argument must contain a string.” when using “save”
Best Answer