如何用MATLAB求从10^(-10)到10^10的和?

2024-11-30 01:38:21
推荐回答(2个)
回答1:

>> sum=0;
>> for i=-10:10
sum=sum+10^i;
end
>> sum

sum =

1.1111e+010

回答2:

循环的步长?