From: Fatnassi on 12 Jun 2010 07:54 Hi everybody, I´m looking for a compact way to localize a row in a matrix deleting that row and reshaping the matrix..! to a new one without the found row..! The problem is has to be compact cause it will be a part of a very long script with GUI and i have to spare some ram ...so solution with loops ...will not solve my problem.. Thunks..!
From: Wayne King on 12 Jun 2010 08:22 "Fatnassi " <afatnassi(a)hotmail.com> wrote in message <huvsgt$9l4$1(a)fred.mathworks.com>... > Hi everybody, > I´m looking for a compact way to localize a row in a matrix > deleting that row and reshaping the matrix..! to a new one without the found row..! > The problem is has to be compact cause it will be a part of a very long script with GUI and i have to spare some ram ...so solution with loops ...will not solve my problem.. > > Thunks..! Hi Fatnassi, The best way depends on the entries in the matrix. For example, find() may work well in some instances and not in others. I think you should give us a little more detail on what characteristics the particular row has, or rows have, that you wish to delete. Wayne
From: us on 12 Jun 2010 08:28 "Fatnassi " <afatnassi(a)hotmail.com> wrote in message <huvsgt$9l4$1(a)fred.mathworks.com>... > Hi everybody, > I´m looking for a compact way to localize a row in a matrix > deleting that row and reshaping the matrix..! to a new one without the found row..! > The problem is has to be compact cause it will be a part of a very long script with GUI and i have to spare some ram ...so solution with loops ...will not solve my problem.. > > Thunks..! which criteria do you want to use to identify your particular row(?)... us
From: Cyberbrain on 12 Jun 2010 08:34 "Wayne King" <wmkingty(a)gmail.com> wrote in message <huvu5d$kfd$1(a)fred.mathworks.com>... > "Fatnassi " <afatnassi(a)hotmail.com> wrote in message <huvsgt$9l4$1(a)fred.mathworks.com>... > > Hi everybody, > > I´m looking for a compact way to localize a row in a matrix > > deleting that row and reshaping the matrix..! to a new one without the found row..! > > The problem is has to be compact cause it will be a part of a very long script with GUI and i have to spare some ram ...so solution with loops ...will not solve my problem.. > > > > Thunks..! > > Hi Fatnassi, The best way depends on the entries in the matrix. For example, find() may work well in some instances and not in others. I think you should give us a little more detail on what characteristics the particular row has, or rows have, that you wish to delete. > > Wayne Thunks for your answer...! I just need to delete a row from a matrix...! so this is what i meant.. : x=[l c] M=[1 2;5 7;46 44;45 35] x is of course a variable vector and i want to find out if that row is defined in my matrix M and if yes than delete it and reshape the matrix M..! Thunks!
From: Cyberbrain on 12 Jun 2010 08:35 "us " <us(a)neurol.unizh.ch> wrote in message <huvugl$c5p$1(a)fred.mathworks.com>... > "Fatnassi " <afatnassi(a)hotmail.com> wrote in message <huvsgt$9l4$1(a)fred.mathworks.com>... > > Hi everybody, > > I´m looking for a compact way to localize a row in a matrix > > deleting that row and reshaping the matrix..! to a new one without the found row..! > > The problem is has to be compact cause it will be a part of a very long script with GUI and i have to spare some ram ...so solution with loops ...will not solve my problem.. > > > > Thunks..! > > which criteria do you want to use to identify your particular row(?)... > > us thunks for ur answer Exact value...! the row is defined...!
|
Next
|
Last
Pages: 1 2 3 Prev: Object Perimeter jitter from thresholded video Next: real time analog input and output |