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