error using Polyfit, X and Y vectors must be the same size

조회 수: 3 (최근 30일)
Jovos
Jovos 2016년 2월 15일
편집: Jovos 2016년 2월 16일
plot(flip(AdjClose))
y = flip(AdjClose)
x = 1:503;
polyfit(y,x,0)
x is a 503*1 double and y is a 1*503 double. I wonder how can I make them the same size?

채택된 답변

the cyclist
the cyclist 2016년 2월 16일
편집: the cyclist 2016년 2월 16일
You can use the transpose function. For example, you could have done
y = flip(AdjClose).'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by