The first argument must be a string array, character vector, or cell array of character vectors
조회 수: 37 (최근 30일)
이전 댓글 표시
Hello
I am getting error for below lines. Showing up the msg, The first argument must be a string array, character vector, or cell array of character vectors
Error: IncDecAnalysis/Decreased (line 323)
[chkFlgIdxList,~,~] = find(ismember(DecOriginTime, MissingTimeList, 'rows' ));
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1110355/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1110360/image.png)
I am not sure, either string data and Double can be compared.
Please suggest the change that I need to do for [chkFlgIdxList,~,~] = find(ismember(DecOriginTime, MissingTimeList, 'rows' ));
Please let me know for more details.
Thank You
댓글 수: 0
채택된 답변
Chunru
2022년 8월 29일
You need to convert DecOriginTime into string that has similar format as MissingTimeList.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!