How to break or split a line at NaN points in 1x15000 csv file?
3 次查看(过去 30 天)
显示 更早的评论
i have a csv file (1x15000) which needs to be splitted at specific points(NaN).
0 个评论
回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!