Error using plot Vectors must be the same length.
显示 更早的评论
Hi everyone,
How can I change the size of Cfit in line 140 of the attached to double(30 x 8), in the attached code. When I run the code, I get error message:
Error using plot
Vectors must be the same length.
Error in fitting (line 145)
plot(tv,Cfit)
采纳的回答
更多回答(1 个)
KSSV
2018-10-3
0 个投票
The dimensions of tv are 1*30 and Cfit are 1*8..how you can plot them? You cannot...to plot the dimensions of the inputs should be same.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!