A = [ 5 ; 3; 3; 1; 5; 6; 7; 11; 12; 10]
size=length(A) for i= 1: length(A)/5 x = A(5i-4,1)+A(5i-3,1)+A(5i-2,1)+A(5i-1,1)+A(5i,1) end
A 라는 행렬을 1 행에서 5행 까지 더하고 6행에서 10 행 까지 2구간을 합으로 할려고 제가 코딩을 만들어 봤는데 오류가 뜨네요 .. 무슨 문제 인가요 ..?
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
댓글 달기