reading adding array of same size
古いコメントを表示
I have some dataset in which I can get values of latitude longitude ch4
in this data I do not have year but I know the year of file.
path=('/Temp/test/'); dir_list=dir('v41_CH4*.txt');
vec1=[];
for i=1:length(dir_list)
data=dlmread(dir_list(i).name,';',3);
latitude=data(:,1);
longitude=data(:,2);
ch4=data(:,3);
vec1=[vec1;ch4];
end
in above code I am getting vec1 with all values in whole data set and I would like get one array of year also so I can plot time series of this data. e.g in data I have 2 files 1970, 1975 how to get this out put output=[vec1 year]
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!