invalid concatenation of structure with matrix

조회 수: 2 (최근 30일)
assia assia
assia assia 2021년 6월 17일
댓글: assia assia 2021년 6월 18일
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
SALAH ALRABEEI
SALAH ALRABEEI 2021년 6월 17일
No in the case, your approach is better. It works even with me without issues.
assia assia
assia assia 2021년 6월 18일
Thank you

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23
Stephen23 2021년 6월 18일
P = fullfile(folderTest,setTestCur);
X = {'*.jpg','*.png','*.bmp'};
N = numel(X);
C = cell(1,N);
for k = 1:N
C{k} = dir(fullfile(P,X{k}));
end
F = vertcat(C{:})

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by