A=[];for i=1:nA(i)=1/i;enddisp(A);S=sum(A);disp(S);MATLAB总是报错Array indices must be positive integers or logical values.怎么办具体应该怎么改?
收起
没问题啊,看:
报告相同问题?