Using data from a FOR loop to then create an array

1 次查看(过去 30 天)
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.

回答(1 个)

Walter Roberson
Walter Roberson 2014-3-17
your_array = zeros(500,1);
for t = 1 : 500
your_array(t) = ....
end

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by