I have made a search type tool which searches for only .mdl files in the folders selected so I used
a= dir(dname); a={a(:).name}'; a(1:2)=[]; file_find = '\w*.mdl'; matchStr= regexp(a,file_find,'match'); R=matchStr(~cellfun('isempty',matchStr));
So its like a is (7 x 1) cell array after that the code does a search for only .mdl and such that R is now (3 x 1). Now this whole code is nested in a loop. When it runs second time R is (1 x 1). I want a combined cell so that the final cell array would be like 3+1=4 ( 4 x 1)
Best Answer