How to write sum

22 ビュー (過去 30 日間)
Ian Lafountain
Ian Lafountain 2020 年 2 月 4 日
回答済み: Lalit Dhurve 2020 年 2 月 4 日
How can I write this summation:
where N is simply input by the user

採用された回答

Lalit Dhurve
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 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by