필터 지우기
필터 지우기

how to load dat file without header?

조회 수: 9 (최근 30일)
Muhammad RSMY
Muhammad RSMY 2018년 10월 8일
댓글: Muhammad RSMY 2018년 10월 8일
hi friends
could you please help me upload dat file without header, also I would like to get similar arrangement of data, as you see there is some rows have extra columns
thanks

채택된 답변

ANKUR KUMAR
ANKUR KUMAR 2018년 10월 8일
Since you have not attached any sample file, I am giving you an example with a attached file.
A=importdata('sample.txt');
A.data
  댓글 수: 7
ANKUR KUMAR
ANKUR KUMAR 2018년 10월 8일
편집: ANKUR KUMAR 2018년 10월 8일
Updated the previous answer. Updated commands are:
C1{i}(length(C1{i})+1:max(id))={''};
and
C1{i}(length(C1{i})+1:max(id))={'0'};
I forgot to add 1 after length(C1{i}).
Sorry for the inconvenience.
Muhammad RSMY
Muhammad RSMY 2018년 10월 8일
Oh Thanks once again

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by