Filter löschen
Filter löschen

How to store an array of values in for loop?

1 Ansicht (letzte 30 Tage)
Casey
Casey am 2 Feb. 2012
Kommentiert: Niklas Kurz am 23 Jan. 2021
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.

Akzeptierte Antwort

Krishnendu Mukherjee
Krishnendu Mukherjee am 2 Feb. 2012
for i=1:10 A(:,i)=(R*5)+(Y*6); end you can try this
  3 Kommentare
uthara
uthara am 11 Dez. 2015
thank you so much
Niklas Kurz
Niklas Kurz am 23 Jan. 2021
genius

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by