matlab 总提示错误:Error using * Inner matrix dimensions must agree.怎么回事?求教。

日期:2018-05-10 14:44:07 人气:1

matlab 总提示错误:Error using * Inner matrix dimensions must agree.怎么回事?求教。

把前两行改成: t=[0 .3 .8 1.1 1.6 2.3]';y=[0.5 0.82 1.14 1.25 1.35 1.40]';也就是说,t 和 y 改成列向量就可以了(顺便纠正第一行的错误)。
    A+
热门评论