import data from the web?
7 次查看(过去 30 天)
显示 更早的评论
Hi friends,
I'd like to import the data found here: http://geoid.colorado.edu/grace/data/data-30i5bio0a9vng04vriclc97976-0005.txt, but Matlab chokes on it. When I view the data in a web browser it looks like three nicely-formatted columns, but if I save it and open in Notepad, the formatting is not evident. Ideas?
Thanks!
0 个评论
回答(2 个)
JPVersiani
2012-6-12
You can do the following: copy and paste from own browser, or save the file and use excel to open it. Open Excel and go to open, change the option to file for'' all files'' and choose the text file, then just define the columns of data and delete the text. Good luck!
Sean de Wolski
2012-6-12
You could always use urlread and then post process the string:
str = urlread('http://geoid.colorado.edu/grace/data/data-30i5bio0a9vng04vriclc97976-0005.txt');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!