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 CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by