Error ~= Invalid types for comparison
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I tried to run this code:
D2sub1.RETsm(D2sub1.ID ~= lagmatrix(D2sub1.ID, 1)) = NaN;
and get the error
Error using ~= (line 30)
Invalid types for comparison.
ID is a categorical column.
Is it not possible to compare categorical variables like this?
Thanks,
4 件のコメント
Jan
2021 年 4 月 17 日
You mention, that ID is a categrical variable, but what is "lagmatrix"? Please post a small example of your inputs.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!