how to accumulate vector

2 visualizzazioni (ultimi 30 giorni)
Jay Hanuman
Jay Hanuman il 8 Dic 2016
Commentato: Jay Hanuman il 8 Dic 2016
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

Risposta accettata

KSSV
KSSV il 8 Dic 2016
a = zeros(1000,4) ;
for i=1:1000
a(i,:)=[b(i) c(i) d(i) e(i)]
end

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by