From: Thijs on 14 Jul 2010 11:02 Dear James, I am working on a packing problem in which objects are placed inside a large matrix. My program stores the linear indices of the cells in which by objects are placed. Because all of the objects are larger than one cell in the matrix, every object gets a number of indices assigned, thes indices are subsequently combined into a row vector. All the vectors have the same name, but they are stored as a property of the object to which they belong. Thijs "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <i1kggo$lfd$1(a)fred.mathworks.com>... > "Thijs " <t.denhamer(a)student.tudelft.nl> wrote in message <i1kfng$t87$1(a)fred.mathworks.com>... > > Hello, > > > > I have a question regarding combining several different row vectors to make one large row vector. Using v3 = [v1, v2] is not an option in this case because I have about 100 vectors that I want to combine to one. Does anybody have a solution for combining a large amount (amount changes often) of vectors? > > Do they all have different names? How are they created? Can you make them part of a large row vector as they are created? > > James Tursa
From: James Tursa on 14 Jul 2010 11:23 "Thijs " <t.denhamer(a)student.tudelft.nl> wrote in message <i1kjhe$d92$1(a)fred.mathworks.com>... > Dear James, > > I am working on a packing problem in which objects are placed inside a large matrix. My program stores the linear indices of the cells in which by objects are placed. Because all of the objects are larger than one cell in the matrix, every object gets a number of indices assigned, thes indices are subsequently combined into a row vector. > All the vectors have the same name, but they are stored as a property of the object to which they belong. Please be more specific. How, exactly, are the vectors stored? As separately named variables? As part of a cell array? As part of a structure? We can't really advise you until we know what you are doing. James Tursa
From: Thijs on 14 Jul 2010 11:34
The vector is stored as a variable inside a structure. Each object has its own structure, because several other properties of the objects are also stored. Thijs "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <i1kkoo$542$1(a)fred.mathworks.com>... > "Thijs " <t.denhamer(a)student.tudelft.nl> wrote in message <i1kjhe$d92$1(a)fred.mathworks.com>... > > Dear James, > > > > I am working on a packing problem in which objects are placed inside a large matrix. My program stores the linear indices of the cells in which by objects are placed. Because all of the objects are larger than one cell in the matrix, every object gets a number of indices assigned, thes indices are subsequently combined into a row vector. > > All the vectors have the same name, but they are stored as a property of the object to which they belong. > > Please be more specific. How, exactly, are the vectors stored? As separately named variables? As part of a cell array? As part of a structure? We can't really advise you until we know what you are doing. > > James Tursa |