HOW TO WRITE SUMMATION FORM ∑_(i=1) (L-1)
이전 댓글 표시
답변 (2개)
Laurent
2013년 9월 4일
0 개 추천
Make an appropriate vector with the values that you want to sum (or select the values from an array containing them) and use the command 'sum'.
Are you trying to sum the first 256 elements of an array? If so, you would do as follows
sum(x(1:256))
Or, if length(x) is 256, then you would just do
sum(x)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!