matrix index (I tried to name a matrix to use in a loop like variables.)

I tried to name a matrix to use in a loop like variables.
forexample A(1)=[1 2;3 4]
A(2)=A(1)*2
A(3)=A(2)*2
.
.
.
A(j)=A(j-1)*2
But I can't use the notation A(j) in the loop. what should I call the j of A?

Asked:

on 24 Jul 2015

Commented:

on 24 Jul 2015

Community Treasure Hunt

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

Start Hunting!