Can somebody show me how to write a script to calculate the following function of N? It just confuses me a bit because if N is an even number then it may very well be the the lower and upper index are not integers... I don't know what the best way to deal with this hurdle is, perhaps make the function go from a negative integer to a positive integer then make a necessary substitution??
I'm not sure.. But i'd love to see what you guys come up with. I'm slowly learning how to write basic programs, but this one is a bit out of my league, and I'd appreciate if somebody could show me how
p.s. how do I make the LaTeX formatting turn on??
4 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025692
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025692
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025704
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025704
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025722
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025722
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025731
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/600364-trying-to-write-a-script-to-calculate-a-sum#comment_1025731
Sign in to comment.