Be the first to rate this file! 13 downloads (last 30 days) File Size: 1.79 KB File ID: #23469

parseCSVLine

by Ashish Uthama

 

29 Mar 2009 (Updated 30 Mar 2009)

Code covered by BSD License  

Parses a valid CSV line and returns a cell array

Download Now | Watch this File

File Information
Description

%Parse a single csv line and return the tokens as a cell array
% Given ,this,that, 2 3,,"hi, there",3;5, ,,
% Returns {'', 'this','that',[2 3],'hi,there',[3;5],'','',''}

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
30 Mar 2009

Slightly better protection for STR2NUM

Tag Activity for this File
Tag Applied By Date/Time
csv data import string Ashish Uthama 30 Mar 2009 14:19:20
csv data import string Fedor 30 Mar 2009 17:30:25
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com