刚开始学matlab,所以对很多基础的东西也不甚了解,
出现了如题的提示信息:In an assignment A(I) = B, the number of elements in B and I must be the same.
我的程序如下:
%从EXCEL表格中读取TBP(END T)数据,T(K)
TBP(1:31)=xlsread('F:\Program Files\work\DATA','sheet1','G3:G33')
K=zeros(31,1)
%计算标准温度\theta和速率常数k
for i=1:31
T(i)=(TBP(i)-TBP(1))/(TBP(31)-TBP(1));
K(i)=kmax*(T(i)^(1/a1));
end