kollurulp
Mechanical
- Apr 2, 2004
- 12
I want to store an array of 2D matrices in other variable and access the saem later
for example it will be like this
A =(A1,A2,A3)
where A1= 1 2 3
4 5 6
7 8 9
10 11 12
and A2 and A3 will be same. The sizes of A1 A2 and A3 are not equal (no of rows differ) and i even dont know how many items like A1, A2, A3 have to be stored in A. This is decided at run time. If i say A(1) then i have to get the values of A1 and i should also be in a position to access the individual elements in A1 also i.,e for exapmle if i say A(1,1) i should get the first column of A1 and if i say A(1,2) i must get the second column.
This is my problem is there any method to handle this in matlab using matrices. or else any other ways are possible. if so please give me the code.
for example it will be like this
A =(A1,A2,A3)
where A1= 1 2 3
4 5 6
7 8 9
10 11 12
and A2 and A3 will be same. The sizes of A1 A2 and A3 are not equal (no of rows differ) and i even dont know how many items like A1, A2, A3 have to be stored in A. This is decided at run time. If i say A(1) then i have to get the values of A1 and i should also be in a position to access the individual elements in A1 also i.,e for exapmle if i say A(1,1) i should get the first column of A1 and if i say A(1,2) i must get the second column.
This is my problem is there any method to handle this in matlab using matrices. or else any other ways are possible. if so please give me the code.