How to define a function with summation.
Show older comments
how would I define a function named ccsum , whose inputs are function handle f and the total number of terms for summation k. The output would be
.
I got started on the code but got stuck
function s = ccsum(f,k);
s = sum(f(1,k));
end
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!