need help in to write a matlab script

3 次查看(过去 30 天)
how do you write a matlab script to calculate the Sum for the expression?

采纳的回答

Sabarinathan Vadivelu
n = 10; % assuming it to be 10
x = 0;
for i = 1 : n
x = ((1/i) + (1/(i+2)*(i+3))) + x;
end

更多回答(1 个)

Roger Stafford
Roger Stafford 2012-12-29
ix = 1:n;
s = sum(1./ix+1./((ix+2).*(ix+3)));

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by