Any suggestions? function =csvreader(filename) %V1_1 Right now I'm using my own script using a loop and fgetl, which is horribly slow for large files. I've tried importdata, csvread, and dlmread, but I'm not sure which is best, or if there's a better solution. So really, part one of my question is: Should I save the data in a different format? I'd save it as a structure, but I need to be able to edit it outside the MATLAB environment, since sometimes I have to delete rows of bad data on a computer that doesn't have MATLAB installed. One major difficulty is that the arrays of data values can be different lengths for each test item. Where the headers are on the left-most column, and the data values take up the remainder of the row. The data is in the following format: Item1,val1,val2,val3 I've written a script that saves its output to a CSV file for later reference, but the second script for importing the data takes an ungainly amount of time to read it back in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |