Sterling
Sterling

Reputation: 45

How to make an array of color images in Matlab?

I want to make an array of color images in Matlab so I can do thearray(i) and get a color image. Is there a way to do this other than making an array of 3D arrays?

Upvotes: 0

Views: 1352

Answers (1)

user492238
user492238

Reputation: 4084

You can use cell arrays:

images = cell(100,1); 
% ... f.e. in a for loop: 
images{i} = rand(100,200);
% to query the image (2D array) again: 
myImage = images{n}; 

Upvotes: 1

Related Questions