Using data from a FOR loop to then create an array

1 visualización (últimos 30 días)
Robert
Robert el 17 de Mzo. de 2014
Respondida: Walter Roberson el 17 de Mzo. de 2014
Hi all, currently doing a project where I have calculated the temperature in a FOR loop but then need to use these values(around 500 values) to produce an array? to get another range of values(500 values) for each temperature value.

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Mzo. de 2014
your_array = zeros(500,1);
for t = 1 : 500
your_array(t) = ....
end

Categorías

Más información sobre Multidimensional Arrays 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