Deleting Some initials of The Matrix

조회 수: 1 (최근 30일)
Najam us Saqib Fraz
Najam us Saqib Fraz 2020년 10월 25일
답변: Star Strider 2020년 10월 25일
I have data as given in the above picture.I want to delete the selected part ( Bluish part in the picture) and consider all other matrix (excluding that bluish part),for my analysis. Is there any way of doing it??Because I have 100s of these types of text files and I can't delete this part ( bluish part in the picture) by going to each indivdual text file one by one.Any help will be really appreciated because It will save alot of hardwork and time.
Thank You

채택된 답변

Star Strider
Star Strider 2020년 10월 25일
It depends on the functions you have available. It appears to be a text file, so one option would be textscan:
fidi = fopen('YourFile.txt,'rt');
Datac = textscan(fidi, '%f%f%f%f', 'HeaderLines',9, 'CollectOutput',1);
Data = cell2mat(Datac);
Likely the best option otherwise would be readmatrix, introduced in R2019a.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by