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{:})
  1 件のコメント
assia assia
assia assia 2021 年 6 月 18 日
Thank you so much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by