MATLAB: Using dlmread and sprintf to iterate through files dlmreadfile iterationsprintf Using dlmread and sprintf to iterate through files Best Answer Use forward slash (even for Windows, it works, trust me):filename = sprintf('PL1/PL1_%d.txt',i);or else use double backslash. Related SolutionsMATLAB: Dlmread Check the help of dlmread(). I believe the range [R1, C1, R2, C2] won't allow negative number.use fullfile() instead of strcat() to combine path and file name. MATLAB: Append many .csv files together in a new csv file . Read about readtable...you can read the data into tables...and append them. Related QuestionImport sequential files using for loop and sprintfSprintf changes in each iterationImporting Numerically Named Excel Files into MATLABHow to iterate through a list of files using dlmread()How to iterate through several filesSprintf problems
Best Answer