MATLAB Answers

Sg dg

need help in to write a matlab script

Asked by Sg dg
on 29 Dec 2012

how do you write a matlab script to calculate the Sum for the expression?



No products are associated with this question.

2 Answers

Answer by Sabarinathan Vadivelu on 29 Dec 2012
 Accepted answer

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


Answer by Roger Stafford
on 29 Dec 2012

 ix = 1:n;
 s = sum(1./ix+1./((ix+2).*(ix+3)));


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!