The first argument must be a string array, character vector, or cell array of character vectors

50 ビュー (過去 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' ));
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

採用された回答

Chunru
Chunru 2022 年 8 月 29 日
You need to convert DecOriginTime into string that has similar format as MissingTimeList.
  1 件のコメント
Santosh Biradar
Santosh Biradar 2022 年 8 月 29 日
thank you @Chunru for your responce.
DecOriginTime = num2str(DecOriginTime);
Getting Expected result.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by