add element from for list to array
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
i have
a=[ 2 6 9 15]
s=0;
for i=1:7
s=s+a(i);
k=s
end
know i want my result will be [0 2 8 17]
but for my code my result is
k=2;
k=8
k=17
but i want it will be lik above not like this please help
1 件のコメント
Walter Roberson
2013 年 11 月 22 日
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!