Creating variables with a loop

Hi,
I'm trying to do something like this, but it obviously doesn't work. Any suggestions?
for i 1:5
partialmatrix_i (1,whatever) = hugematrix(1,whatever*i)
end
output:
partialmatrix_1
partialmatrix_2
partialmatrix_3
partialmatrix_4
partialmatrix_5

更多回答(1 个)

类别

在 帮助中心 和 File 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