Azzera filtri
Azzera filtri

How to store an array of values in for loop?

1 visualizzazione (ultimi 30 giorni)
I am unsure on how to store an array of values in a for loop? example:
for i=1:10 A=(R*5)+(Y*6); end;
% A represents the array.
When i type A, i could not get the set of array values.

Risposta accettata

Krishnendu Mukherjee
Krishnendu Mukherjee il 2 Feb 2012
for i=1:10 A(:,i)=(R*5)+(Y*6); end you can try this
  3 Commenti
uthara
uthara il 11 Dic 2015
thank you so much

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements 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