|
Hi there,
I would like to be able to create a vector or an array of matrices - is that possible?
For example, if I have three matrices:
M1 = [1:5;1:5];
M2 = [2:6;2:6];
M3 = [6:10;6:10];
and I would like to be able to have them as elements of a vector (VM) so that I can call them up by using VM(i) (and if the i were a 1 it would call up M1), or VM(:,:,i) if that is the more accurate approach. I am not sure how to go about this, but I would like to be able to put them in a for loop and be able to have each of the M matrices go through a set of if statements.
If more clarification is needed, I am happy to provide it!
|