how to accumulate vector

5 ビュー (過去 30 日間)
Jay Hanuman
Jay Hanuman 2016 年 12 月 8 日
コメント済み: Jay Hanuman 2016 年 12 月 8 日
I have following code
for i=1:1000
a=[b(i) c(i) d(i) e(i)]
end
I want accumulate value of a for every i I am adding line
f(i)=a
before end but its showing error

採用された回答

KSSV
KSSV 2016 年 12 月 8 日
a = zeros(1000,4) ;
for i=1:1000
a(i,:)=[b(i) c(i) d(i) e(i)]
end
  1 件のコメント
Jay Hanuman
Jay Hanuman 2016 年 12 月 8 日
yes works

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by