Error using plot Vectors must be the same length

1 回表示 (過去 30 日間)
Michal Kalowski
Michal Kalowski 2023 年 5 月 4 日
コメント済み: Michal Kalowski 2023 年 5 月 9 日
I'm getting the error "Error using plot Vectors must be the same length", however I can't quite figure out where the error is in using plot. I am attaching a photo of the code.
  11 件のコメント
Michal Kalowski
Michal Kalowski 2023 年 5 月 4 日
Ok super. Thank you for your help
Michal Kalowski
Michal Kalowski 2023 年 5 月 9 日
I have one more question, how to implement seasonal back differencing and first order back differencing into the sent code. I am attaching an example of such code that I would like to enter into my code.
dd = length(y_1d); kk = length(y);
for i =1:n_for
y_1d(dd+i) = yfor(i) + y_1d(dd-m+i); %seasonal back differencing
end
for i = 1:n_for
y(kk+i) = y(kk-1+i) + y_1d(dd+i); %first order back differencing
end

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by