How to define a function with summation.
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!