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

1 visualización (últimos 30 días)
Roobini Vijayabalan
Roobini Vijayabalan el 21 de Oct. de 2019
Comentada: Yuan Li el 24 de Oct. de 2019
i have a csv file (1x15000) which needs to be splitted at specific points(NaN).

Respuestas (1)

Yuan Li
Yuan Li el 21 de Oct. de 2019
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 comentarios
Roobini Vijayabalan
Roobini Vijayabalan el 21 de Oct. de 2019
ya thanks for the help
how to break the line after every NaN to create a new column?
Yuan Li
Yuan Li el 24 de Oct. de 2019
Can u set an example? I don't understand.

Iniciar sesión para comentar.

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by