MATLAB: How to create 200 random matrices using loop..

digital image processingdigital signal processingimage processingmatrix manipulationsignal processing

Hi..I want to create separate 200 random matrices of size 32*32 , and each to be multiplied with my input matrix..whether any looping is possible here ..please help ..
thank in advance

Best Answer

Try this:
tic;
inputMatrix = rand(32, 32); % Whatever you want...
for k = 1 : 200
thisRandomMatrix = rand(32,32); % Create new random matrix for this iteration.
storedMatrixes{k} = inputMatrix .* thisRandomMatrix ; % Multiply them
end
toc;
msgbox('Done with loop');