나는 특정 디렉토리의 모든 파일을 포함하는 배열을 가지고 있습니다. .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)
사람이