No BSD License  

Highlights from
readtexttocells

4.5

4.5 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 807 Bytes File ID: #1460

readtexttocells

by Andrew Diamond

 

05 Mar 2002

Read delimted text file into 2-d cell array.

| Watch this File

File Information
Description

Short hack based on textread to return 2-d cell arrays. Good for CSV or TAB separated data as perhaps exported by a spreadsheet program.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
30 Jan 2006 Lu Wang

A simple solution to my problem. Thanks!

10 Nov 2010 per isakson

Nice and simple approach! However, the last line of the text file must be terminated by a new line character. A test on that should be added.
/per

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Andrew Diamond 22 Oct 2008 06:42:48
data export Andrew Diamond 22 Oct 2008 06:42:48
delimited Andrew Diamond 22 Oct 2008 06:42:48
text Andrew Diamond 22 Oct 2008 06:42:48
cells Andrew Diamond 22 Oct 2008 06:42:48
csv Andrew Diamond 22 Oct 2008 06:42:48
cell arrays Andrew Diamond 22 Oct 2008 06:42:48
read Andrew Diamond 22 Oct 2008 06:42:48
cell arrays karthikeyan 27 May 2009 05:55:06
csv karthikeyan 27 May 2009 05:55:11

Contact us at files@mathworks.com