How to define a function with summation.
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!