how to accumulate vector

1 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Signal Generation and Preprocessing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by