![]() ![]() If no range argument is supplied, csv2cell assumes the first line contains column headers and the number of fields in the first line is supposed to be the number of columns in the output array. If the specified row range exceeds the number of lines in the file, the range is silently truncated to match the number of lines per file. If the specified column range reaches beyond the number of fields on a line, the output cell array is padded with empty string values. If hl is equal to or larger than the total number of lines in the file, no data is read and an empty cell array is returned.Īlternatively, optional argument range can be specified as a spreadsheet-style cell range to specify a block of fields to be returned in c. Optional argument hl (a numeric value >= 0) is the number of headerlines to skip negative values are ignored. Prot (a character value) changes the character used to protect a string. ![]() ![]() Sep (a character value) changes the character used to separate two fields. Read a CSV (Comma Separated Values) file and convert it into a cell array. ) Loadable Function: c = csv2cell ( file, range. Loadable Function: c = csv2cell ( file) Loadable Function: c = csv2cell ( file, sep) Loadable Function: c = csv2cell ( file, sep, prot) Loadable Function: c = csv2cell ( file, hl. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |