I'm trying to compare some files' names to group them according to their date. it happens that I have data from 3 different equipment and I'm trying to compare the files' names to build a single array or struct without success.
I loaded the files using:
G = dir('GPS_*.txt');for n = 1:length(G)load(G(n).name)endH = dir('HOB_*.txt');for n = 1:length(H)load(H(n).name)endN = dir('NEF_*.txt');for n = 1:length(N)load(N(n).name)end
I have now the files loaded as:
G 12x1 structGPS_01122013_1 4846x11 doubleGPS_02112013_1 3819x11 doubleGPS_02112013_2 3820x11 doubleH 12x1 structHOB_01122013_1 5226x9 doubleHOB_02112013_1 3580x9 doubleHOB_02112013_2 3826x9 doubleN 13x1 structNEF_01122013_1 88x9 doubleNEF_02112013_1 63x9 doubleNEF_02112013_2 64x9 double
I tried to use strcmp (G.name,H.name) but had no result. I wanna group by date to build a matrix for each day of data.
Thanks in advance for the help