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

More Answers (1)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!