フィルターのクリア

Fillmissing problem when using busdate

2 ビュー (過去 30 日間)
chiefjia
chiefjia 2021 年 10 月 2 日
コメント済み: Prateek Rai 2021 年 10 月 14 日
Dear MATLAB experts,
I'm trying to impute the missing values of an array(reporting_dateArray) with the next business date of the dates from another array (position_dateArray). However, I keep getting the error below:
Error using fillmissing/checkConstantsSize (line 732)
Fill constant must be a scalar.
Error in fillmissing/parseInputs (line 674)
intConstOrWindowSize =
checkConstantsSize(A,AisTable,false,intConstOrWindowSize,dim,dataVars,'');
Error in fillmissing (line 157)
[A,AisTable,intM,intConstOrWinSize,extM,x,dim,dataVars,ma,maxgap] =
parseInputs(A,fillMethod,varargin{:});
---
The code I've been running is the following:
reporting_dateArray = fillmissing(reporting_dateArray, 'constant', busdate(position_dateArray))
I would be really greatful if you could help me out with this, you can find the input files attached.
Thank you in advance.
  1 件のコメント
Prateek Rai
Prateek Rai 2021 年 10 月 14 日
Hi,
Can you attach the input files so that it could be easy to find the possible reason for the error?
Thanks

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

採用された回答

chiefjia
chiefjia 2021 年 10 月 10 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by