Ho una matrice che contiene tutti i file in una particolare directory. Voglio rimuovere tutte le voci di file che terminano con l'estensione .txt. Questo è ciò che ho scrittoremove element from array matlab
function fileList = removeElements(fileArray)
for idx = 1:numel(fileArray)
if (strfind(fileArray(idx),'.txt') > 0)
display('XX');
fileArray(idx) =[];
end
end
end
ma ottengo un errore
??? Undefined function or method 'gt' for input arguments of type 'cell'.
Error in ==> removeElements at 6
if(strfind(fileArray(idx),'.bmp') > 0)
qualcuno può aiutarmi