How to concatenate horizontaly and not vertically
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Merlin Piron
am 16 Apr. 2020
Kommentiert: Stephan
am 16 Apr. 2020
Hello everybody,
I'm sorry for my stupid question but I'm starting on matlab ..
I have a problem in my code ... my C and V vectors concatenate vertically ... how can I modify that?
clear all
clc
experience = 'Assets';
extension ='csv';
filelist = dir([experience,'/*',extension]);
nfiles = length(filelist);
% Pour chaque fichier, on récupère les infos et les données
% les données sont stockées dans des tableaux RAIES et DATAS
C = [];
V = [];
for ifile = 1:nfiles
disp(['Traitement du fichier n° ',sprintf('%d',ifile)])
probname = filelist(ifile).name;
probdate = filelist(ifile).date;
tmp=readmatrix([experience,'/',probname]);
RAIES = tmp(:,6);
DATAS = tmp(:,7);
C = [C; [RAIES]];
V = [V; [DATAS]];
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!