主题:请教高手。。。。。
请教高手:以下是我程序中的一小段,为什么会出现错误,该如何修改
Ra=100;
length(a)=3
for n=2:length(a)
d(n)=d(n-1)+b(n-1)*(x-a(n-1));
x=linspace(a(n-1),a(n),100);
M=Ra*x-d(n);
plot(x,M)
end
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.