Effacer les filtres
Effacer les filtres

Fillmissing problem when using busdate

2 vues (au cours des 30 derniers jours)
chiefjia
chiefjia le 2 Oct 2021
Commenté : Prateek Rai le 14 Oct 2021
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 commentaire
Prateek Rai
Prateek Rai le 14 Oct 2021
Hi,
Can you attach the input files so that it could be easy to find the possible reason for the error?
Thanks

Connectez-vous pour commenter.

Réponse acceptée

chiefjia
chiefjia le 10 Oct 2021

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by