Missing rows in cell array generated from CSV file

I am using a MATLAB script that uses the readcell function to read in data from multiple CSV files. Each file is relatively large (4.5 MB) and is read in with the 'ConsecutiveDelimitersRule' set to 'split'.
When I compare the MATLAB cell generated by readcell to the original CSV file, several rows in the CSV file are not present in the cell array. There does not appear to be a consistent pattern of which rows are skipped over during the import process.
Are there any potential issues with this setup given the file format and size?

3 Kommentare

Can you include a small .csv file and your code to reproduce this behaviour ?
dpb
dpb vor etwa 3 Stunden
As @Torsten says, it will not be possible to diagnose this without a file that creates the issue. If you can't simply snip out a section around the apparently missing section of the original file and reproduce the symptoms, you would be able to post a compressed version of the file if run into size limits. Of course, the smaller you can make and still reproduce the problem, the better...
My crystal ball says will find some aberration in the file construction underlying it, but "ya' never knows!"
Stephen23
Stephen23 vor etwa 3 Stunden
Bearbeitet: Stephen23 vor 12 Minuten
"Are there any potential issues with this setup given the file format and size?"
Much more likely cause: the file content.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Version

R2024a

Gefragt:

vor etwa 12 Stunden

Bearbeitet:

vor etwa eine Stunde

Community Treasure Hunt

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

Start Hunting!

Translated by