Effacer les filtres
Effacer les filtres

need help in to write a matlab script

1 vue (au cours des 30 derniers jours)
Sg dg
Sg dg le 29 Déc 2012
how do you write a matlab script to calculate the Sum for the expression?

Réponse acceptée

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

Plus de réponses (1)

Roger Stafford
Roger Stafford le 29 Déc 2012
ix = 1:n;
s = sum(1./ix+1./((ix+2).*(ix+3)));

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by