How to define a function with summation.
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!