필터 지우기
필터 지우기

How to break or split a line at NaN points in 1x15000 csv file?

조회 수: 1 (최근 30일)
Roobini Vijayabalan
Roobini Vijayabalan 2019년 10월 21일
댓글: Yuan Li 2019년 10월 24일
i have a csv file (1x15000) which needs to be splitted at specific points(NaN).

답변 (1개)

Yuan Li
Yuan Li 2019년 10월 21일
You can start with finding the position of NaN, for example:
a is your loaded data array;
then use
[m,n]=find(isNaN(a));
you can locate the position of NaN, then you can use the locations to split the array.
  댓글 수: 4
Roobini Vijayabalan
Roobini Vijayabalan 2019년 10월 21일
ya thanks for the help
how to break the line after every NaN to create a new column?
Yuan Li
Yuan Li 2019년 10월 24일
Can u set an example? I don't understand.

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

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by