MATLAB: How to delete a particular row in multiple TXT files
MATLABText Analytics Toolbox
How can I erase the same row (row #3) in multiple TXT files using MATLAB code?
Best Answer
Please take a look at the example code below which deletes the 3rd row of TXT files present in the current directory. The code reads in the TXT files in the current directory, deletes the 3rd row and saves the modified files to a new folder
files = dir('*.txt') ;%read all txt files in current directory
Best Answer