Feeds
提问
Can someone explain why the top code works but the bottom one has an error that says "Index exceeds the number of array elements. Index must not exceed 1."
First Code: f=@(x) ((2.*x)./((2.*x)-1)).*((2.*x)/((2.*x)+1)); k=1;s=f(1); for k=2:1000 s=s*f(k); end s Second Code: ...
1 year 前 | 1 个回答 | 0
