필터 지우기
필터 지우기

Help with For End loop

조회 수: 8 (최근 30일)
Hasan
Hasan 2014년 11월 1일
댓글: Image Analyst 2014년 11월 1일
Use a For-end loop in a script file to calculate the sum of the first n terms of the series:
Summation sign on the top n bottom k=1 : ((-1)^k * k^2 +5k)/3^k Show the script file and the two results of n = 10 and n = 20.
WHAT IS THIS I DONT UNDERSTAND LOOPS HELP PLEASE IM BEGGING!!!. x.x

채택된 답변

Image Analyst
Image Analyst 2014년 11월 1일
n=10;
theSum = 0;
for k = 1 : n
theSum =
OK, that should be enough hint for you to finish your homework.
  댓글 수: 2
Hasan
Hasan 2014년 11월 1일
i still dont get it
Image Analyst
Image Analyst 2014년 11월 1일
I didn't know this was a duplicate question. Then just use the answer Harry gave you in http://www.mathworks.com/matlabcentral/answers/160855-help-with-homework-please-loops-are-hard He did your entire homework question for you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by