How to store an array of values in for loop?

1 visualización (últimos 30 días)
Casey
Casey el 2 de Feb. de 2012
Comentada: Niklas Kurz el 23 de En. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by