COMBINE MULTIPLE ASCII FILE WITH SIMILAR COLUMN FORMAT OF (X,Y,Z) INTO SINGLE SINGLE FILE OF SAME COLUMN (X,Y,Z)
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MAT NIZAM UTI
am 27 Mär. 2023
Kommentiert: MAT NIZAM UTI
am 28 Mär. 2023
Hi, I tried to combine multiple ascii file that have similar column (x,y,z) into single file with same (x,y,z) column.
I really2 stuck on how to combine it. Here I attach my coding.
clc
clear
format short
[oldFileNames,PathName] = uigetfile('*.asc','Select the asc-files', 'MultiSelect','on');
for k = 1:length(oldFileNames)
the_file = oldFileNames{k};
end
0 Kommentare
Akzeptierte Antwort
Stephen23
am 27 Mär. 2023
[F,P] = uigetfile('*.asc','Select the asc-files', 'MultiSelect','on');
F = cellstr(F);
C = cell(size(F));
for k = 1:numel(F)
C{k} = readtable(fullfile(P,F{k}));
end
T = vertcat(C{:});
writematrix(T,'combined.asc')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!