Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ベクトルを 20 個のグループで合計しようとしています。ベクトルの長さはたとえば 7628 です。20 個のセットの合計でベクトルを出力する方法がわかりません。
ans = [sum(a(1:20) sum(a(21:30)....].