This question is closed. Reopen it to edit or answer.

exclusion of some rows from text files

1 view (last 30 days)
prabhanshu gupta
prabhanshu gupta on 3 Jul 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
i have 200 text files which contains data in 800 rows but some empty cells are there in few rows. I want text files as an ourtput which not contains empty rows kindly help me to code programme in the matlab for this problem.
if it is possible kindly help me to code the programme which execute all files in same time.

Answers (1)

Julie on 4 Jul 2019
Read in the text files using fscanf
Delete the empty rows in matlab, if your data is numbers which have zero rows I usually use
Write the files using fprintf


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!