내가 텍스트 파일의 폴더를 검색하고 그리고 난으로 myText라는 새로운 배열로 발견 된 파일을 추가하고다음 오류가 두 배에서 셀로 변환 발생
이 내 코드
function fileList = removeElements(fileArray)
x = 1;
mytext = [];
for idx = 1:numel(fileArray)
if (~isempty(strfind(fileArray(idx),'.txt') ))
mytext(x) = fileArray(idx)
x=x+1;
end
end
끝
는그러나 스피
??? The following error occurred converting from cell to double:
Error using ==> double
Conversion to double from cell is not possible.
Error in ==> removeElements at 10
mytext(x) = fileArray(idx)
내가이 문제를 어떻게 극복 할 수있는 오류가?
그러면 fileArray (idx)도 fileArray {idx} 여야합니까? – klijo