How to write sum
22 ビュー (過去 30 日間)
古いコメントを表示
How can I write this summation:
where N is simply input by the user
0 件のコメント
採用された回答
Lalit Dhurve
2020 年 2 月 4 日
Simple !!
function Y=Summation(N)
Y=0;
for n=1:1:N
Y=Y+((n+2)/sqrt(n))+n^3;
end
end
Done !!!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!