Info
此问题已关闭。 请重新打开它进行编辑或回答。
How do I get Matlab to recognise a text file as numerical values when importing it ?
1 次查看(过去 30 天)
显示 更早的评论
I need to input all the data from this file into Matlab but have it recognize the txt as numerical values. I struggling on how to do that.
The file is at this link:
0 个评论
回答(2 个)
Walter Roberson
2016-11-8
%load a copy of the file locally
url = 'https://coastwatch.glerl.noaa.gov/statistic/ice/dat/g2011_2012_ice.dat'
tfile = [tempname '.dat'];
urlwrite(url, tfile);
%read it in
data = readtable(tfile);
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!