storing the value of a loop

1 次查看(过去 30 天)
Offroad Jeep
Offroad Jeep 2022-10-24
评论: Offroad Jeep 2022-10-24
Hi,
I have values
b=2,4,5,8,9,11,19 these values come after running a loop and appear one by one
now i want to get all the values in one matrix
kindly guide how to see these values in one matrix.
Thanking in anticipation....
  2 个评论
dpb
dpb 2022-10-24
Again, <Example of array assignment in loo> illustrates exactly how to do that efficiently, including the preallocation of the output array in which to index.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by