first two inputs must have the same number of elements error(hw deadline soon)
1 次查看(过去 30 天)
显示 更早的评论
when i used polyfit it gives error like The first two inputs must have the samenumber of elements error.I share my code please how can i fix?
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/808534/image.png)
0 个评论
回答(1 个)
Star Strider
2021-11-21
Check the code to be certain that the first two input arguments are the same length.
If they are not, change the code so that they are.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!