Effacer les filtres
Effacer les filtres

how to accumulate vector

7 vues (au cours des 30 derniers jours)
Jay Hanuman
Jay Hanuman le 8 Déc 2016
Commenté : Jay Hanuman le 8 Déc 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

Réponse acceptée

KSSV
KSSV le 8 Déc 2016
a = zeros(1000,4) ;
for i=1:1000
a(i,:)=[b(i) c(i) d(i) e(i)]
end
  1 commentaire
Jay Hanuman
Jay Hanuman le 8 Déc 2016
yes works

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Signal Generation and Preprocessing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by