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!