Info

この質問は閉じられています。 編集または回答するには再度開いてください。

exclusion of some rows from text files

1 回表示 (過去 30 日間)
prabhanshu gupta
prabhanshu gupta 2019 年 7 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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.

回答 (1 件)

Julie
Julie 2019 年 7 月 4 日
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
Data(sum(Data.^2,2),:)=[];
Write the files using fprintf

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by