MATLAB: How to create n arrays of size 100 each with random integer values

#arrays #randomintegers

c = cell(1,100)
for i = 1:100
c{i} = randi(100)
end
I tried doing this but it only gives 100 arrays of size 1.
I need 1-D arrays
Any other solution is gladly welcomed.
Thank you!

Best Answer

c = cell(1,100)
for i = 1:100
c{i} = randi(100,1,100)
end