i have attached two csv file i want to convert "GLDAS_NOAH10......csv"file in the format of "Apr-02.csv".please provide me the code
1 次查看(过去 30 天)
显示 更早的评论
convert the GLDAS ......csv in the format of Apr-02.csv
0 个评论
采纳的回答
KSSV
2018-6-26
file = 'GLDAS_NOAH10_M.A200201.021.csv' ;
[num,txt,raw] = xlsread(file) ;
lon = num(1,:) ; lon(1) = [] ;
lat = num(:,1) ; lat(1) = [] ;
A = num(2:end,2:end) ;
[X,Y] = meshgrid(lon,lat) ;
T = [X(:) Y(:) A(:)] ;
xlswrite('check.xlsx',T)
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!