私は特定のディレクトリ内のすべてのファイルを含む配列を持っています。 .txt拡張子で終わるすべてのファイルエントリを削除したいと思います。これは私が配列matlabから要素を削除
function fileList = removeElements(fileArray)
for idx = 1:numel(fileArray)
if (strfind(fileArray(idx),'.txt') > 0)
display('XX');
fileArray(idx) =[];
end
end
end
を書かれているものですが、私はエラー
??? Undefined function or method 'gt' for input arguments of type 'cell'.
Error in ==> removeElements at 6
if(strfind(fileArray(idx),'.bmp') > 0)
誰かが