invalid concatenation of structure with matrix
Show older comments
Here's the full code:
folderTestCur = fullfile(folderTest,setTestCur);
ext = {'*.jpg','*.png','*.bmp'};
filepaths = [];
for i = 1 : length(ext):
filepaths = cat(1,filepaths,dir(fullfile(folderTestCur, ext{i})));
end
6 Comments
SALAH ALRABEEI
on 17 Jun 2021
Either use sprintf or use filename = [path,ext{i}]
assia assia
on 17 Jun 2021
SALAH ALRABEEI
on 17 Jun 2021
If I got you correctly, you are trying to create dynmaic pahfile inside the loop!! You can do the same inside the loop instead
assia assia
on 17 Jun 2021
SALAH ALRABEEI
on 17 Jun 2021
No in the case, your approach is better. It works even with me without issues.
assia assia
on 18 Jun 2021
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!