Code covered by the BSD License  

Highlights from

5.0 | 1 rating Rate this file 17 Downloads (last 30 days) File Size: 1.97 KB File ID: #39915



Daniel (view profile)


Download a google spreadsheet as csv and import into a Matlab cell array.

| Watch this File

File Information

result = GetGoogleSpreadsheet(DOCID)

[DOCID] see the value after 'key=' in your spreadsheet's url
         e.g. '0AmQ013fj5234gSXFAWLK1REgwRW02hsd3c'

[result] cell array of the the values in the spreadsheet

IMPORTANT: The spreadsheet must be shared with the "anyone with the link" option

This has no error handling and has not been extensively tested.
Please report issues in comments below.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
02 Apr 2015 Adam Danz

Adam Danz (view profile)

This looks incredibly useful.

Any updates now that google sheets has been merged with good drive and no longer contains the 'key=' part (replaced with /d/ but still doesn't work with this code) ?

Comment only
22 Jul 2013 Nagavenkat

worked perfectly
Thank you

Contact us