Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle array of matrices at run time 1

Status
Not open for further replies.

kollurulp

Mechanical
Joined
Apr 2, 2004
Messages
12
Location
DE
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.
 
Have you tried using a cell array of 2D matrices?

M

--
Dr Michael F Platten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top