Is it really so simple that it seems to be a homework? No, it's not really a homework. It is actually the first step in a research work. It is a fitness function that I have to optimize it through heuristic methods considering weights (wi) as the optimization variables.
Thanks. But I need it in Matlab. Do you have any idea for solving it in Matlab with a 'for' loop or vectorized summation for any arbitrary n, e.g., n=100?
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/504365-computing-an-specific-numerical-integral#comment_795029
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/504365-computing-an-specific-numerical-integral#comment_795029
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/504365-computing-an-specific-numerical-integral#comment_795036
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/504365-computing-an-specific-numerical-integral#comment_795036
Sign in to comment.