主题:求助!帮忙找错!
clear
t=-0.4:0.4;
rangek=[(-1) (-0.75) (-0.5) (-0.25) 0];
y1=(-1460000000).*t/(0.00000025-t.^2);
y2=0.00002915./[0.005843-(0.00000025-t.^2)+0.001559];
for j=1:5
y(:,j)=[0.00000009349*rangek(j)+y2].*y1;
end
plot(t,y (:,1:5)),grid
为什么没有图形出来了,而且t的取值不一样还会提示错误:??? In an assignment A(:,matrix) = B, the number of elements in the subscript of A and the number
of columns in B must be the same.
大哥们帮帮忙啊!
t=-0.4:0.4;
rangek=[(-1) (-0.75) (-0.5) (-0.25) 0];
y1=(-1460000000).*t/(0.00000025-t.^2);
y2=0.00002915./[0.005843-(0.00000025-t.^2)+0.001559];
for j=1:5
y(:,j)=[0.00000009349*rangek(j)+y2].*y1;
end
plot(t,y (:,1:5)),grid
为什么没有图形出来了,而且t的取值不一样还会提示错误:??? In an assignment A(:,matrix) = B, the number of elements in the subscript of A and the number
of columns in B must be the same.
大哥们帮帮忙啊!