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

1 次查看(过去 30 天)
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by