问题很简单:当我尝试用日期的其余部分绘制一些指数方程时,它显示错误“向量必须是相同的长度”,我不知道如何解决它。数据是:当我绘制多项式值时效果很好
plot(T,S,'+', TT,polyval(q,TT)) % statement 1 : works!
但它不适用于
plot(T,S,'+', TT,eb*10.^(em*T)) % statement 2 : doesn't work
where
T = 12 22 32 41 49
S = 4 9 12 14 16
TT = % 3701 in length i know the size doesn't match with others,
% but the statement 1 works and 2 doesnt)
q = -0.0047 0.6027 -2.3666
eb = 1.6860
em = 0.0152