Statistics
1 Question
0 Answers
RANK
296,861
of 300,750
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 21,073
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 170,837
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
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: ...
10 months ago | 1 answer | 0
